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")); }
public void Insert(Order entity) { Context.Insert(entity); }