示例#1
0
        public List <HoliDayListDto> GetAllHoliDay()
        {
            HoliDayListDto req = new HoliDayListDto();

            req.SiteId = 1;
            var result = _masterRepository.GetAllHoliDay(req);

            return(result);
        }
        public List <HoliDayListDto> GetAllHoliDay(HoliDayListDto req)
        {
            List <HoliDayListDto> lstHoliDay = new List <HoliDayListDto>();

            try
            {
                var holidaylist = MasterContext.HoliDayList.Where(i => i.SiteId == req.SiteId).ToList();
                lstHoliDay = Mapper.Convert <HoliDayListDto, HoliDayList>(holidaylist);
            }
            catch (Exception ex)
            {
            }
            return(lstHoliDay);
        }