public Lancamento Update(Lancamento g) { if (g != null) { try { repository.Update(g); repository.Commit(); repository.Dispose(); } catch (Exception e) { throw; } } return(g); }