Основные методы
Основные методы
Основные методы
Основные методы
public IActionResult SaveAddAuctionBid(Models.AuctionBid aucObj) { int uid = Convert.ToInt32(HttpContext.Session.GetString("uid")); if (uid == 0) { return(RedirectToAction("Login", "Home")); } bool status = _repObj.SaveAuctionBid(_mapper.Map <AuctionBid>(aucObj)); if (status) { TempData["BidAdded"] = "Success! You just added a new bid!"; return(RedirectToAction("ViewAllOnAuctions")); } else { return(View("Error")); } }