public List <TimeSlotModel> GetAllTimeSlots() { var timeslots = _unitOfWork.TimeSlotRepository.GetAll(); var timeslotDtos = new List <TimeSlotModel>(); foreach (var type in timeslots) { timeslotDtos.Add(TimeSlotMapper.Map(type)); } return(timeslotDtos); }
public List <TimeSlotDto> GetTimeSlots() { var timeSlots = _timeSlotDomainService.GetAllTimeSlots(); var result = new List <TimeSlotDto>(); foreach (var slot in timeSlots) { result.Add(TimeSlotMapper.Map(slot)); } return(result); }