Пример #1
0
        public ActionResult endreOrdre(Produkten innbruker)
        {
            var Kundebll = new KundeBLL();

            if (Kundebll.endreprodukt(innbruker))
            {
                return(RedirectToAction("ListAlleProdukter"));
            }
            else
            {
                string endring = "Produktinformasjon";
                string text    = "Kunne ikke endre informasjon på produkt med produktid: " + innbruker.produktid;
                testskriver(text, endring);
                return(View());
            }
        }