30 lines
714 B
C#
30 lines
714 B
C#
namespace Brizco.Domain.CommandQueries.Commands;
|
|
|
|
public sealed record CreateTaskCommand(TaskType Type,
|
|
string Title,
|
|
string Description,
|
|
bool IsDisposable,
|
|
DateTime SetFor,
|
|
bool HasDisposed,
|
|
int Amount,
|
|
PurchaseAmountType AmountType,
|
|
List<Guid> Shifts,
|
|
List<Guid> Positions,
|
|
List<DayOfWeek> Days) : IRequest<TaskLDto>;
|
|
|
|
public sealed record UpdateTaskCommand(Guid Id,
|
|
TaskType Type,
|
|
string Title,
|
|
string Description,
|
|
bool IsDisposable,
|
|
DateTime SetFor,
|
|
bool HasDisposed,
|
|
int Amount,
|
|
PurchaseAmountType AmountType,
|
|
List<Guid> Shifts,
|
|
List<Guid> Positions,
|
|
List<DayOfWeek> Days) : IRequest<bool>;
|
|
|
|
|
|
public sealed record DeleteTaskCommand(Guid Id)
|
|
: IRequest<bool>; |