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

39 lines
1009 B
C#

namespace Brizco.Domain.CommandQueries.Commands;
public sealed record CreateActivityCommand(
ActivityStatus Status,
DateTime DoneAt,
string PerformanceDescription,
TaskType Type,
string Title,
string Description,
bool IsDisposable,
DateTime SetFor,
bool HasDisposed,
int Amount,
PurchaseAmountType AmountType,
TaskScheduleType ScheduleType,
List<Guid> Routines,
List<Guid> Shifts,
List<Guid> Positions) : IRequest<ActivityLDto>;
public sealed record UpdateActivityCommand(Guid Id,
ActivityStatus Status,
DateTime DoneAt,
string PerformanceDescription,
TaskType Type,
string Title,
string Description,
bool IsDisposable,
DateTime SetFor,
bool HasDisposed,
int Amount,
PurchaseAmountType AmountType,
TaskScheduleType ScheduleType,
List<Guid> Routines,
List<Guid> Shifts,
List<Guid> Positions) : IRequest<bool>;
public sealed record DeleteActivityCommand(Guid Id)
: IRequest<bool>;