/// <summary>
        /// 分页获取
        /// </summary>
        /// <param name="organizationMenuPageRequestDto"></param>
        /// <returns></returns>

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

            pageData.Data = list.MapToList <OrganizationMenu, OrganizationMenuQueryDto>().ToList();
            return(pageData);
        }
Exemple #2
0
 /// <summary>
 /// 分页获取
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public async Task <PageData> GetPageList(OrganizationMenuPageRequestDto input)
 {
     input.InitRequest();
     return(await _organizationMenuAppService.GetPageListAsync(input));
 }