Ejemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            var seller = await HttpContext.GetMemberAsync();

            var model = new DashboardModel
            {
                ProductListEvaluation  = await _productService.EvaluateAsync(new ProductFilter { SellerId = seller.Id }),
                CategoryListEvaluation = await _categoryService.EvaluateAsync(new CategoryFilter { SellerId = seller.Id }),
                BannerListEvaluation   = await _bannerService.EvaluateAsync(new BannerFilter { SellerId = seller.Id }),
                ReviewListEvaluation   = await _reviewService.EvaluateAsync(new ReviewFilter { SellerId = seller.Id })
            };

            return(View(model));
        }