예제 #1
0
        public IActionResult Index()
        {
            CustomerModel customerObj = new CustomerModel();

            ViewBag.CustomersList = customerObj.GetAllCustomers();
            return(View());
        }
예제 #2
0
        public ActionResult ShowAllCustomers()
        {
            var model = new CustomerModel();

            model.Customers = model.GetAllCustomers();

            return(View(model));
        }