Example #1
0
 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");
     }
 }
Example #2
0
 // GET: Ordre
 public ActionResult Index()
 {
     OrdrerBLL ordreBll = new OrdrerBLL();
     return View(ordreBll.AlleOrdre());
 }
Example #3
0
 public ActionResult Bestill(int id)
 {
     OrdrerBLL ordreBll = new OrdrerBLL();
     ordreBll.RegistrerOrdre(id);
     return RedirectToAction("Index", "Home");
 }