public async Task AdicionarAsync(Pretendente pretendente)
        {
            await _contexto.Pretendentes.AddAsync(pretendente);

            await _contexto.SaveChangesAsync();
        }
Esempio n. 2
0
        public async Task AdicionarAsync(Voto voto)
        {
            await _contexto.Votos.AddAsync(voto);

            await _contexto.SaveChangesAsync();
        }