public ActionResult endreVare(int id, Vare endreVare) { if(ModelState.IsValid) { var Vare = new VareBLL(); bool endringOk = Vare.endreVare(id, endreVare); if(endringOk) { return RedirectToAction("VareListe"); } } return View(); }
public ActionResult EndreVare(int id, VareModel innVare) { if (ModelState.IsValid) { var vareBll = new VareBLL(); bool endreOK = vareBll.endreVare(id, innVare); if (endreOK) { return(RedirectToAction("AlleVarer", "Vare")); } } return(View()); }
public ActionResult endreVare(int id, Vare endreVare) { if (ModelState.IsValid) { var Vare = new VareBLL(); bool endringOk = Vare.endreVare(id, endreVare); if (endringOk) { return(RedirectToAction("VareListe")); } } return(View()); }