Exemplo n.º 1
0
        public IActionResult Index()
        {
            var claimUserId = User.FindFirst(ClaimTypes.NameIdentifier);

            ViewBag.WaitingItemsCount    = _itemService.AmountOfWaitingItems(claimUserId.Value);
            ViewBag.InAuctionItemsCount  = _itemService.AmountOfAuctions(claimUserId.Value);
            ViewBag.FinancialLiabilities = _orderService.GetTotalLiabilities(claimUserId.Value);
            ViewBag.MyLeadBidsAmount     = _itemService.GetLeadBidOfItem(claimUserId.Value);
            return(View());
        }