Beispiel #1
0
        /// <summary>
        /// A view with the loged on users orders.
        /// </summary>
        /// <returns>View with the a spesific customers orders if a user is signed in, else back to the frontpage.</returns>
        public ActionResult CustomersOrders()
        {
            var customer = (UserVM)Session["Kunde"];

            if (customer != null)
            {
                List <OrderVM> list = _ordreBLL.AlleOfCustomersOrders(customer.Email);
                return(View(list));
            }
            return(RedirectToAction("Frontpage", "Film"));
        }