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