////////////////////////////////////////////////////////////////////////// public void CreateOrder(double?total, int location, int userID, DateTime OrderTime) { var newOrder = new OrdersRepository(new PizzaPlaceDBContext()); newOrder.AddOrders(total, location, userID, OrderTime); newOrder.SaveChanges(); }