Пример #1
0
        public Schedule GetById(string id)
        {
            var sched = ModelConverter.ConvertScheduleDtoToModel(_scheduleHandler.GetById(id));

            sched.Shifts = ModelConverter.ConvertShiftDtoListToShiftModelList(_scheduleHandler.GetShiftsFromSchedule(id));
            return(sched);
        }
Пример #2
0
 public List <Shift> GetTodaysShifts(string id, DateTime date)
 {
     return(ModelConverter.ConvertShiftDtoListToShiftModelList(_scheduleHandler.GetTodaysShifts(id, date)));
 }
Пример #3
0
 public List <Shift> GetShiftsFromSchedule(string id)
 {
     return(ModelConverter.ConvertShiftDtoListToShiftModelList(_scheduleHandler.GetShiftsFromSchedule(id)));
 }
Пример #4
0
 public List <Shift> GetShiftsFromUser(string userId)
 {
     return(ModelConverter.ConvertShiftDtoListToShiftModelList(_shiftHandler.GetShiftsFromUser(userId)));
 }
Пример #5
0
 public List <Shift> GetAll()
 {
     return(ModelConverter.ConvertShiftDtoListToShiftModelList(_shiftHandler.GetAll()));
 }