示例#1
0
        public ActionResult Edit(int id, CustomerViewModel customerViewModel, int LocationID)
        {
            _buisnessLogicClass.UpdateCustomer(id, customerViewModel, LocationID);


            List <Customer> customers = _buisnessLogicClass.GetAllTheCustomers();

            List <CustomerViewModel> customerViewModels = new List <CustomerViewModel>();

            foreach (Customer c in customers)
            {
                customerViewModels.Add(_buisnessLogicClass.ConvertCustomerIntoVM(c));
            }

            return(View("Index", customerViewModels));
        }