public ActionResult EditBidStatus(Bid bid) { if (ModelState.IsValid) { _bidService.EditBid(bid); return(RedirectToAction("Index")); } ViewBag.StatusID = new SelectList(_statusService.GetAllStatus(), "StatusID", "Name", bid.StatusID); ViewBag.TransportBidPlanID = new SelectList(_transportBidPlanService.GetAllTransportBidPlan(), "TransportBidPlanID", "ShortName", bid.TransportBidPlanID); ViewBag.RegionID = new SelectList(_adminUnitService.GetRegions(), "AdminUnitID", "Name"); // return View("Index", _bidService.GetAllBid()); return(View(bid)); }