Esempio n. 1
0
        /// <summary>
        /// 分页获取
        /// </summary>
        /// <param name="employeeMenuPageRequestDto"></param>
        /// <returns></returns>

        public async Task <PageData> GetPageListAsync(EmployeeMenuPageRequestDto employeeMenuPageRequestDto)
        {
            var pageData = new PageData(employeeMenuPageRequestDto.PageIndex, employeeMenuPageRequestDto.PageSize);
            var list     = await _employeeMenuRespository.WherePaged(pageData, e => e.IsDelete == false,
                                                                     e => e.CreateDate, false);

            pageData.Data = list.MapToList <EmployeeMenu, EmployeeMenuQueryDto>().ToList();
            return(pageData);
        }
 /// <summary>
 /// 分页获取
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task <PageData> GetPageList(EmployeeMenuPageRequestDto input)
 {
     input.InitRequest();
     return(await _employeeMenuAppService.GetPageListAsync(input));
 }