public IActionResult Chargeback(int clienteId, Credit credit) { var cliente = _clientService.FindById(clienteId); if (cliente == null) { return(NotFound()); } _creditService.Chargeback(credit, clienteId); return(RedirectToRoute(new { controller = "Clients", action = "Credits", id = clienteId })); }