Refactor ButtonDto and ReadButtonRequest

Removed unused MediatR directive, added required ProfileId
property, and removed DialogNo from ButtonDto. Updated
ReadButtonRequest to inherit from IRequest<ButtonDto>
for MediatR integration.
This commit is contained in:
tekh 2025-08-01 13:27:06 +02:00
parent 363606dc61
commit 63adb51263

View File

@ -1,13 +1,7 @@
using MediatR;
namespace WorkFlow.Application.Buttons;
namespace WorkFlow.Application.Buttons;
public record ButtonDto
{
public int Id { get; init; }
public required int ProfileId { get; init; }
public byte? DialogNo { get; init; }
public string? BtnType { get; init; }
@ -23,6 +17,4 @@ public record ButtonDto
public string? DialogCommand { get; init; }
public string? ConfirmationText { get; init; }
}
public record ReadButtonRequest : IRequest<ButtonDto>;
}