public Response <BANCO> Delete(int id) { Response <BANCO> response = new Response <BANCO>(); try { BANCO banco = bancoRepository.GetById(id); if (banco == null) { return(response.Error("Banco no encontrado")); } banco.Estado = "I"; Update(banco); return(response); } catch (Exception e) { return(response.Error(e.Message)); } }