Пример #1
0
        public Result <Transaction> Handle(SalvarTransacaoCommand command)
        {
            var transacao = _transacaoRepository.Salvar(command.Descricao,
                                                        command.Valor,
                                                        command.Data);

            return(new Result <Transaction> {
                Dado = transacao
            });
        }
Пример #2
0
 public bool Salvar(Transacao transacao)
 {
     return(_transacaoRepository.Salvar(transacao));
 }