예제 #1
0
        public IActionResult GetPageHoliday([FromQuery] FilterHolidayDto param)
        {
            FilterHolidayDto filters = new FilterHolidayDto()
            {
                Description = param.Description,
                Date        = new DateDto()
                {
                    Day   = param.Day,
                    Month = param.Month,
                    Year  = param.Year
                },
                Page = param.Page
            };
            var response = _holidayService.Pagination(filters);

            if (!response.IsSuccess)
            {
                return(BadRequest(response));
            }

            return(Ok(response.Response));
        }