2024-08-11 19:20:09 +03:30
|
|
|
|
namespace Brizco.Domain.Entities.Routines;
|
2023-11-13 14:42:49 +03:30
|
|
|
|
|
|
|
|
|
|
public partial class Routine
|
|
|
|
|
|
{
|
|
|
|
|
|
public static Routine Create(string name, string description, Guid complexId)
|
|
|
|
|
|
{
|
|
|
|
|
|
return new Routine(name, description, complexId);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ShiftRoutine AddShift(Guid shiftId)
|
|
|
|
|
|
{
|
|
|
|
|
|
var shift = new ShiftRoutine(this.Id, shiftId);
|
|
|
|
|
|
this.Shifts.Add(shift);
|
|
|
|
|
|
return shift;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|