// GET: Customer //[Authorize] public IActionResult Index() { var viewModel = new CustomerViewModel(); var customers = repositoryLayer.GetCustomers(); viewModel.Customers = customers; return(View(viewModel)); }