public ViewResult Checkout(lot new_lot) { LotRepository lotRep = new LotRepository(); lotRep.Save(new_lot); return View("Thanks"); }
public ActionResult GetAdmin(lot change_lot) { LotRepository lotRep = new LotRepository(); Expression<Func<lot, bool>> filter = x => x.lotID == change_lot.lotID; List<lot> c_lot = lotRep.Get(filter).ToList(); c_lot[0].statusID = change_lot.statusID; lotRep.Save(c_lot[0]); filter = x => x.statusID == (int)Status.view; List<lot> lots = lotRep.Get(filter).ToList(); DropDownInit(); return View(lots); }