public async Task <IActionResult> RemoverCliente(int ClienteId) { List <Cliente> clientes = await _cliente.ListaDeClientes(); if (clientes.Find(x => x.ClienteId == ClienteId) == null) { return(RedirectToAction(nameof(Index))); } else { await _cliente.RemoverCliente(ClienteId); return(RedirectToAction(nameof(ListarClientes))); } }