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:
parent
363606dc61
commit
63adb51263
@ -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>;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user