public async Task <IActionResult> Index()
        {
            var auctionList = await _auctionClient.GetAuctions();

            if (auctionList.IsSuccess)
            {
                return(View(auctionList.Data));
            }
            return(View());
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Index()
        {
            var productList = await _productClient.GetProducts();

            if (productList.IsSuccess)
            {
                ViewBag.ProductList = productList.Data;
            }
            var userList = await _userRepository.GetAllAsync();

            ViewBag.UserList = userList;

            var auctionList = await _auctionClient.GetAuctions();

            if (auctionList.IsSuccess)
            {
                return(View(auctionList.Data));
            }
            else
            {
                return(View());
            }
        }