Esempio n. 1
0
 public ActionResult OprettBruker(Kunde innkunde)
 {
     if (!ModelState.IsValid)
     {
         return(View());
     }
     try
     {
         var Kundebll = new KundeBLL();
         Kundebll.opprettBruker(innkunde);
         return(RedirectToAction("Index"));
     }
     catch (Exception feil)
     {
         string endring = "Kunne ikke opprette bruker";
         string text    = "Kunnde ikke opprette bruker med id: " + innkunde.kundeid;
         testskriver(text, endring);
         return(View());
     }
 }