Api/Brizco.Domain/CommandQueries/Commands/TaskCommands.cs

34 lines
818 B
C#
Raw Normal View History

2023-10-13 16:25:34 +03:30
namespace Brizco.Domain.CommandQueries.Commands;
public sealed record CreateTaskCommand(TaskType Type,
string Title,
string Description,
bool IsDisposable,
long SetFor,
bool HasDisposed,
int Amount,
PurchaseAmountType AmountType,
TaskScheduleType ScheduleType,
List<Guid> Routines,
List<Guid> Shifts,
2023-11-13 14:42:49 +03:30
List<Guid> Positions,
2023-10-13 16:25:34 +03:30
List<DayOfWeek> Days) : IRequest<TaskLDto>;
public sealed record UpdateTaskCommand(Guid Id,
TaskType Type,
string Title,
string Description,
bool IsDisposable,
long SetFor,
bool HasDisposed,
int Amount,
PurchaseAmountType AmountType,
TaskScheduleType ScheduleType,
List<Guid> Routines,
List<Guid> Shifts,
2023-11-13 14:42:49 +03:30
List<Guid> Positions,
2023-10-13 16:25:34 +03:30
List<DayOfWeek> Days) : IRequest<bool>;
public sealed record DeleteTaskCommand(Guid Id)
: IRequest<bool>;