Example #1
0
 public ActionResult opprettAdmin(sikkerAdmin innadmin)
 {
     if (!ModelState.IsValid)
     {
         return(View());
     }
     try
     {
         var Kundebll = new KundeBLL();
         _kundeBLL.opprettAdmin(innadmin);
         return(RedirectToAction("adminlogg"));
     }
     catch (Exception feil)
     {
         string endring = "Kunne ikke opprette admin";
         string text    = "Kunnde ikke opprette admin med id: " + innadmin.adminid;
         testskriver(text, endring);
         return(View());
     }
 }