public ActionResult Create( [Bind(Include = "Id,ProductsName,ProductPrice,DatePurchaced,Category,Quantity,User_Id")] FormCollection form) { IEnumerable <Order> order = new List <Order>(); if (ModelState.IsValid) { var session = (List <Cart>)Session["Carts"]; order = BusinessLogic.MapCartToTher(session); _db.AddOrder(order); _db.Commit(); return(RedirectToAction("Index")); } return(View(order)); }