Beispiel #1
0
        public ActionResult Finalize()
        {
            Order          Final = new Order();
            OrderViewModel FinalOrderViewModel = Session["FinalOrder"] as OrderViewModel;

            Final.Customer = FinalOrderViewModel.Customer;
            Final.Salesman = FinalOrderViewModel.Salesman;
            Final.Products = FinalOrderViewModel.Products;
            _orderContext.Insert(Final);
            return(RedirectToAction("Index", "Home"));
        }
Beispiel #2
0
 public void Insert(Order entity)
 {
     Context.Insert(entity);
 }