public Shift GetFields(Shift s)
        {
            s.DayOfTheWeek = DayOfWeek;
            s.ShiftCategory = new ShiftCategory() { CategoryName = "SSSS" };
            s.EmployeeShifts = ShiftSlots;
            s.Notes = txtNotes.Text;
            s.RosterId = RosterId;

            return s;
        }
        private void AddEditShiftRoster_Load(object sender, EventArgs e)
        {
            var unitofwork = new UnitOfWork();
            RebindPresets();
            WorkingShift = unitofwork.ShiftRepository.Get(x => x.DayOfTheWeek == DayOfWeek && x.RosterId == RosterId, includeProperties: "EmployeeShifts.EmployeeShiftAssignments").FirstOrDefault();

            if (WorkingShift != null)
            {
                ShiftSlots = WorkingShift.EmployeeShifts.ToList();
                txtNotes.Text = WorkingShift.Notes;
                RebindShiftSlots();

            }
            RebindBookingInformation();
        }
 int GetEmployeeCount(UnitOfWork unitofwork, Shift shift)
 {
     return unitofwork.ShiftRepository.Get(x => x.Id == shift.Id, includeProperties: "EmployeeShifts").FirstOrDefault().EmployeeShifts.Count;
 }