public ActionResult slettVare(int id, Vare slettVare)
 {
     var VareDb = new VareBLL();
     bool slettOk = VareDb.slettVare(id);
     if(slettOk)
     {
         return RedirectToAction("VareListe");
     }
     return View();
 }
Пример #2
0
        public ActionResult SlettVare(int id, VareModel innVare)
        {
            var  vareBll = new VareBLL();
            bool slettOK = vareBll.slettVare(id);

            if (slettOK)
            {
                return(RedirectToAction("AlleVarer", "Vare"));
            }
            return(View());
        }
Пример #3
0
        public ActionResult slettVare(int id, Vare slettVare)
        {
            var  VareDb  = new VareBLL();
            bool slettOk = VareDb.slettVare(id);

            if (slettOk)
            {
                return(RedirectToAction("VareListe"));
            }
            return(View());
        }