예제 #1
0
        public HolidayDTOs HolidayListbyId(int id)
        {
            Holiday     Record       = _unitOfWork.HolidayRepository.GetById(id);
            HolidayDTOs Returnreocrd = HolidayRequestFormatter.ConvertRespondentInfoToDTO(Record);

            return(Returnreocrd);
        }
예제 #2
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);
        }