public HolidayDTOs HolidayListbyId(int id) { Holiday Record = _unitOfWork.HolidayRepository.GetById(id); HolidayDTOs Returnreocrd = HolidayRequestFormatter.ConvertRespondentInfoToDTO(Record); return(Returnreocrd); }
public int CreateHolidays(HolidayDTOs htd) { Holiday dataToInsert = new Holiday(); dataToInsert = HolidayRequestFormatter.ConvertRespondentInfoFromDTO(htd); HolidayDTOs dt = HolidayRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.HolidayRepository.Create(dataToInsert)); int id = dt.HolidayId; return(id); }