Exemplo n.º 1
0
        public async Task <PublicDetailSellerDto> GetPublicSellerInfo(long SellerId)
        {
            Domain.Seller.Seller seller = await SellerManager.GetSellerById(SellerId);

            var Statistic = await _statisticDomainService.GetSellerStatistic(seller.Id);

            return(new PublicDetailSellerDto
            {
                Id = seller.Id,
                CoverUrl = seller.SellerCover?.Image.Url,
                Description = seller.Description,
                LogoUrl = seller.SellerLogo?.Image.Url,
                Name = seller.Name,
                AuctionCount = Statistic.AuctionCount,
                OrderCount = Statistic.OrderCount
            });
        }
Exemplo n.º 2
0
        public async Task <SellerDashboard> GetDashboardData()
        {
            var sellerId = (await GetCurrentSeller()).Id;

            return(await _statisticDomainService.GetSellerStatistic(sellerId));
        }