Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public int UpdateHoliday(HolidayDTOs htd)
        {
            Holiday att = HolidayRequestFormatter.ConvertRespondentInfoFromDTO(htd);

            return(_unitOfWork.HolidayRepository.Update(att));
        }