public List<CustomerViewModel> GetAll()
 {
     CustomerViewModels = new List<CustomerViewModel>();
     List<Customer> Customers = new MoviesStoreProxy.Repository.Facade().GetCustomerRepository().ReadAll();
     foreach (Customer cus in Customers)
     {
         CustomerViewModel newViewModel = new CustomerViewModel() { ID = cus.Id, FirstName = cus.FirstName, LastName = cus.LastName, Email = cus.Email.ToLower(), Address = cus.Address };
         CustomerViewModels.Add(newViewModel);
     }
     return CustomerViewModels;
 }
 public void AddOrder(ShoppingCart Cart, int CustomerID)
 {
     //Add the order
     Order newOrder = new Order() { Customer = new Facade().GetCustomerRepository().GetCustomer(CustomerID), date = DateTime.Now };
     new Facade().GetOrderRepository().Add(newOrder);
     //Add the orderlines
     int OrderID = new Facade().GetOrderRepository().ReadAll().Where(x => x.CustomerId == CustomerID).OrderBy(x => x.date).LastOrDefault().Id;
     List<OrderLine> OrderLines = new List<OrderLine>();
     foreach (OrderLineViewModel Line in Cart.OrderLines)
     {
         OrderLine newLine = new OrderLine() { MovieId = Line.MovieVM.Movie.Id, Amount = Line.Amount, OrderId = OrderID };
         new Facade().GetOrderLineRepository().Add(newLine);
     }
 }