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); }