public ActionResult Send(int id) { try { OrdrerBLL ordreBll = new OrdrerBLL(); ordreBll.SendOrdre(id); LoggBLL loggBll = new LoggBLL(); loggBll.Lagre(new LoggModel() {Tidspunkt = DateTime.Now, Bruker = Session["Brukernavn"].ToString(), Handling = "Sendt ordre" }); return RedirectToAction("Index", "Ordre"); } catch { return RedirectToAction("Index", "Ordre"); } }
// GET: Ordre public ActionResult Index() { OrdrerBLL ordreBll = new OrdrerBLL(); return View(ordreBll.AlleOrdre()); }
public ActionResult Bestill(int id) { OrdrerBLL ordreBll = new OrdrerBLL(); ordreBll.RegistrerOrdre(id); return RedirectToAction("Index", "Home"); }