コード例 #1
0
        public async Task <PagedResultDto <PublicSellerDto> > GetAllPublicSellers(PagedSellerRequestDto input)
        {
            IQueryable <PublicSellerDto> sellers = (await SellerManager
                                                    .SearchSeller(input.Keyword))
                                                   .Select(s =>
                                                           new PublicSellerDto
            {
                Id      = s.Id,
                Name    = s.Name,
                LogoUrl = s.SellerLogo.Image.Url
            });

            return(await GetPagedResult(sellers, input));
        }
コード例 #2
0
        public async Task <PagedResultDto <SellerDto> > GetAllSellers(PagedSellerRequestDto input)
        {
            IQueryable <SellerDto> sellers = (await SellerManager
                                              .SearchSeller(input.Keyword))
                                             .Select(s =>
                                                     new SellerDto
            {
                Id            = s.Id,
                Address       = s.Address,
                Name          = s.Name,
                SellerLogoUrl = s.SellerLogo.Image.Url,
                UserName      = s.User.UserName
            })
            ;

            return(await GetPagedResult(sellers, input));
        }