public IActionResult Index() { var clienteModels = _clientes.GetAll(); var listingResults = clienteModels.Select(result => new ClientesIndexListingModel { Id = result.Id, Nome = result.Nome, Endereco = _clientes.GetEndereco(result.Id), CPF = _clientes.GetCPF(result.Id), EMail = result.Email, Telefone = result.Telefone }); var model = new ClienteIndexModel() { Clientes = listingResults }; return(View(model)); }