public ActionResult Create(BidList m) { m.JobId = Int32.Parse(Session["JobId"].ToString()); m.BidBy = Int32.Parse(Session["UserId"].ToString()); BidRepo.Insert(m); return(RedirectToAction("Index", "JobList")); }