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

12 lines
493 B
C#

using Brizco.Domain.Entities.Shift;
namespace Brizco.Domain.CommandQueries.Commands;
public sealed record CreateShiftCommand(string Title, TimeSpan StartAt, TimeSpan EndAt, string Description , List<DayOfWeek> DayOfWeeks)
: IRequest<ShiftSDto>;
public sealed record UpdateShiftCommand(Guid Id,string Title, TimeSpan StartAt, TimeSpan EndAt, string Description, List<DayOfWeek> DayOfWeeks)
: IRequest<bool>;
public sealed record DeleteShiftCommand(Guid Id)
: IRequest<bool>;