示例#1
0
        public async Task <Anexo> Inserir(DateTime dataLancamento, CadastrarAnexoEntrada cadastroEntrada)
        {
            // Realiza o upload do arquivo do anexo para o Google Drive
            var idGoogleDrive = await RealizarUploadAnexo(dataLancamento, cadastroEntrada);

            if (this.Invalido)
            {
                return(null);
            }

            var anexo = new Anexo(cadastroEntrada, idGoogleDrive);

            await _efContext.AddAsync(anexo);

            return(anexo);
        }
示例#2
0
 public async Task Inserir(Categoria categoria)
 {
     await _efContext.AddAsync(categoria);
 }
示例#3
0
 public async Task Inserir(Lancamento lancamento)
 {
     await _efContext.AddAsync(lancamento);
 }
示例#4
0
 public async Task Inserir(Agendamento agendamento)
 {
     await _efContext.AddAsync(agendamento);
 }
示例#5
0
 public async Task Inserir(Periodo periodo)
 {
     await _efContext.AddAsync(periodo);
 }
 public async Task Inserir(LancamentoDetalhe detalhe)
 {
     await _efContext.AddAsync(detalhe);
 }
示例#7
0
 public async Task Inserir(Pessoa pessoa)
 {
     await _efContext.AddAsync(pessoa);
 }
示例#8
0
 public async Task Inserir(Fatura fatura)
 {
     await _efContext.AddAsync(fatura);
 }
示例#9
0
 public async Task Inserir(Atalho atalho)
 {
     await _efContext.AddAsync(atalho);
 }
示例#10
0
 public async Task Inserir(Conta conta)
 {
     await _efContext.AddAsync(conta);
 }
示例#11
0
 public async Task Inserir(Parcela parcela)
 {
     await _efContext.AddAsync(parcela);
 }
示例#12
0
 public async Task Inserir(CartaoCredito cartao)
 {
     await _efContext.AddAsync(cartao);
 }