//TODO:Ertugrula'a not.Vıdeo cekerken yok gıbı davran. public async Task <IActionResult> Detail(string id) { AuctionBidsViewModel model = new AuctionBidsViewModel(); var auctionResponse = await _auctionClient.GetAuctionById(id); var bidsResponse = await _bidClient.GetAllBidsByAuctionId(id); model.SellerUserName = HttpContext.User?.Identity.Name; model.AuctionId = auctionResponse.Data.Id; model.ProductId = auctionResponse.Data.ProductId; model.Bids = bidsResponse.Data; return(View(model)); }
public async Task <IActionResult> Detail(string id) { AuctionBidsViewModel model = new AuctionBidsViewModel(); var auctionResponse = await _auctionClient.GetAuctionById(id); var bidsResponse = await _bidClient.GelAllBidsByAuctionId(id); model.SellerUserName = HttpContext.User?.Identity.Name; model.AuctionId = auctionResponse.Data.Id; model.ProductId = auctionResponse.Data.ProductId; model.Bids = bidsResponse.Data; var isAdmin = HttpContext.Session.GetString("IsAdmin"); model.IsAdmin = Convert.ToBoolean(isAdmin); return(View(model)); }