public IActionResult Show(string id = "") { if (HttpContext.Session.GetInt32("current_id") == null) { return(RedirectToAction("Index")); } ViewBag.Auction_Info = bidFactory.Auction_Info(id); ViewBag.User_one = userFactory.CurrentUser((int)HttpContext.Session.GetInt32("current_id")); if (ViewBag.Auction_Info.bidend_date <= DateTime.Now) { bidFactory.Money_Transfer(id, ViewBag.Auction_Info.user_id, ViewBag.Auction_Info.top_bid_id, ViewBag.Auction_Info.top_bid, ViewBag.User_one.wallet); } return(View("Show")); }