예제 #1
0
        // GET: CustomerController
        public ActionResult Index()
        {
            List <Customer>          customers          = _buisnessLogicClass.GetAllTheCustomers();
            List <CustomerViewModel> customerViewModels = new List <CustomerViewModel>();

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

            return(View(customerViewModels));
        }