public ActionResult slettBestilling(int id) { var bestillingDb = new BestillingBLL(); Bestilling enBestilling = bestillingDb.hentEnBestilling(id); return(View(enBestilling)); }
public ActionResult endreBestilling(int id) { var bestillingDb = new BestillingBLL(); Bestilling enBestilling = bestillingDb.hentEnBestilling(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(enBestilling)); } } return(RedirectToAction("Home")); }