public ApiResult getListPage([FromBody] QuartzOptionCondition condition)
        {
            List <QuartzOptionDTO> quartzOptionDTOs = _quartzOptionService.getListPage(condition);
            int count = _quartzOptionService.Count(condition);

            return(ApiResult.Success(new { data = quartzOptionDTOs, count = count }));
        }
        public List <QuartzOptionDTO> getListPage(QuartzOptionCondition quartzOptionCondition)
        {
            Expression <Func <QuartzOption, object> > desc = s => s.CreateTime;
            IEnumerable <QuartzOption> quartzOptions       = _quartzOptionRepository.SelectByPage(quartzOptionCondition.CurrentPage, quartzOptionCondition.PageSize, null, desc);
            List <QuartzOptionDTO>     list = new List <QuartzOptionDTO>();

            foreach (var item in quartzOptions)
            {
                QuartzOptionDTO quartzOptionDTO = ConvertToDTO(item);
                list.Add(quartzOptionDTO);
            }
            return(list);
        }
 public int Count(QuartzOptionCondition condition)
 {
     return(_quartzOptionRepository.SelectCount());
 }