public ActionResult RegistrerBestilling(Bestilling innBestilling)
 {
     if (ModelState.IsValid)
     {
         var  bestilling = new BestillingBLL();
         bool insertOk   = bestilling.leggTilBestilling(innBestilling);
         if (insertOk)
         {
             return(RedirectToAction("BestillingListe"));
         }
     }
     return(View());
 }
 public ActionResult RegistrerBestilling(int id)
 {
     if (ModelState.IsValid)
     {
         BestillingBLL bestilling = new BestillingBLL();
         bool          ok         = bestilling.leggTilBestilling(id);
         if (ok)
         {
             RedirectToAction("BestillingListe");
         }
     }
     return(RedirectToAction("BestillingListe"));
 }