// GET: /<controller>/ public IActionResult Index() { TempData["ErrorMessage"] = null; var customerProfileList = _customerProfileRepository.GetCustomerProfileList(); ViewBag.Title = "List All Customer Profile"; return(View(customerProfileList)); }