// Fjerner en Vare
        public ActionResult SlettVare(int id)
        {
            var       vareBll   = new VareBLL();
            VareModel slettVare = vareBll.hentEnVare(id);

            return(View(slettVare));
        }
        // Endrer opplysninger til en vare
        public ActionResult EndreVare(int id)
        {
            var       dbVare = new VareBLL();
            VareModel enVare = dbVare.hentEnVare(id);

            return(View(enVare));
        }
        public ActionResult VareDetaljer(int id)
        {
            var       vareBll = new VareBLL();
            VareModel enVare  = vareBll.hentEnVare(id);

            return(View(enVare));
        }
Beispiel #4
0
        public ActionResult slettVare(int id)
        {
            var  vareDb = new VareBLL();
            Vare enVare = vareDb.hentEnVare(id);

            return(View(enVare));
        }
Beispiel #5
0
        public ActionResult VareDetaljer(int id)
        {
            var  VareDb = new VareBLL();
            Vare enVare = VareDb.hentEnVare(id);

            return(View(enVare));
        }
Beispiel #6
0
        public ActionResult EndreVare(int id)
        {
            var  vareDb = new VareBLL();
            Vare enVare = vareDb.hentEnVare(id);

            if (Session["Innlogget"] == null)
            {
                Session["Innlogget"] = false;
                ViewBag.Innlogget    = false;
            }
            else
            {
                ViewBag.Innlogget = (bool)Session["Innlogget"];
                bool ok = (bool)Session["Innlogget"];
                if (ok)
                {
                    return(View(enVare));
                }
            }
            return(RedirectToAction("Home"));
        }
 public ActionResult VareDetaljer(int id)
 {
     var VareDb = new VareBLL();
     Vare enVare = VareDb.hentEnVare(id);
     return View(enVare);
 }
 public ActionResult slettVare(int id)
 {
     var vareDb = new VareBLL();
     Vare enVare = vareDb.hentEnVare(id);
     return View(enVare);
 }