38 lines
885 B
C#
38 lines
885 B
C#
using Brizco.Domain.Entities.Shift;
|
|
|
|
namespace Brizco.Domain.CommandQueries.Commands;
|
|
|
|
public sealed record CreateTaskCommand(TaskType Type,
|
|
string Title,
|
|
string Description,
|
|
bool IsRelatedToShift,
|
|
bool IsRelatedToRole,
|
|
bool IsRelatedToPerson,
|
|
bool IsDisposable,
|
|
DateTime SetFor,
|
|
bool HasDisposed,
|
|
int Amount,
|
|
PurchaseAmountType AmountType,
|
|
List<Guid> Users,
|
|
List<Guid> Shifts,
|
|
List<Guid> Roles) : IRequest<TaskLDto>;
|
|
|
|
public sealed record UpdateTaskCommand(Guid id,
|
|
TaskType Type,
|
|
string Title,
|
|
string Description,
|
|
bool IsRelatedToShift,
|
|
bool IsRelatedToRole,
|
|
bool IsRelatedToPerson,
|
|
bool IsDisposable,
|
|
DateTime SetFor,
|
|
bool HasDisposed,
|
|
int Amount,
|
|
PurchaseAmountType AmountType,
|
|
List<Guid> Users,
|
|
List<Guid> Shifts,
|
|
List<Guid> Roles) : IRequest<bool>;
|
|
|
|
|
|
public sealed record DeleteTaskCommand(Guid id)
|
|
: IRequest<bool>; |