//Adiciona EventoParticipante
        public async Task Create(EventoParticipante eventoparticipante)
        {
            await _blazorefContext.EventoParticipante.AddAsync(eventoparticipante);

            await _blazorefContext.SaveChangesAsync();
        }
Esempio n. 2
0
        //Adiciona um participante
        public async Task Create(Participante participante)
        {
            await _eventoContext.Participante.AddAsync(participante);

            await _eventoContext.SaveChangesAsync();
        }