Esempio n. 1
0
        public ShiftDTO InsertShift(ShiftDTO data)
        {
            Shift dataToInsert = new Shift();

            dataToInsert = ShiftRequestFormatter.ConvertRespondentInfoFromDTO(data);
            ShiftDTO res = ShiftRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.ShiftRepository.Create(dataToInsert));

            return(res);
        }
Esempio n. 2
0
 public ShiftDTO GetShiftById(int id)
 {
     return(ShiftRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.ShiftRepository.GetById(id)));
 }