public ActionResult Opprettprodukt(FormCollection innProdukt) { try { var Kundebll = new KundeBLL(); _kundeBLL.opprettprodukt(innProdukt); return(RedirectToAction("administrator")); } catch (Exception feil) { string endring = "Legg til produkt"; string text = "Kunne ikke legge til produkt med navn: " + innProdukt["produktnavn"]; testskriver(text, endring); return(View()); } }