public ActionResult PostBid(AuctionItemPage currentPage, BidStuff BidThing) { string idStr = currentPage.PageLink.ToString(); int id = Convert.ToInt32(idStr); BidVM bid = new BidVM(); bid.ItemId = id; bid.BidAmount = BidThing.BidAmount; bid.NewBidder = BidThing.NewBidder; string message = SQLQuery.AddBidToDB(bid); return(RedirectToAction("Index")); }