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();
 }
示例#2
0
 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());
 }
示例#3
0
 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());
 }