public void GeraTransacaoSaida(decimal?valor, TipoCredito credito, int?clienteId) { Transacao transacao = new Transacao(); transacao.NovaTransacaoSaida(valor, credito, clienteId); transacao.ConfigurarParaSalvar(); db.Transacao.Add(transacao); db.SaveChanges(); }