public IActionResult Index() { CustomerModel customerObj = new CustomerModel(); ViewBag.CustomersList = customerObj.GetAllCustomers(); return(View()); }
public ActionResult ShowAllCustomers() { var model = new CustomerModel(); model.Customers = model.GetAllCustomers(); return(View(model)); }