public async Task <IActionResult> Index() { var auctionList = await _auctionClient.GetAuctions(); if (auctionList.IsSuccess) { return(View(auctionList.Data)); } return(View()); }
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()); } }