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

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

            model.Customers = model.GetAllCustomers();

            return(View(model));
        }