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

12 lines
534 B
C#
Raw Normal View History

2023-09-15 12:37:02 +03:30
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, List<Guid> Routines)
: IRequest<ShiftSDto>;
2023-09-15 12:37:02 +03:30
public sealed record UpdateShiftCommand(Guid Id,string Title, TimeSpan StartAt, TimeSpan EndAt, string Description, List<DayOfWeek> DayOfWeeks, List<Guid> Routines)
: IRequest<bool>;
2023-09-15 12:37:02 +03:30
public sealed record DeleteShiftCommand(Guid Id)
: IRequest<bool>;