//Adiciona EventoParticipante public async Task Create(EventoParticipante eventoparticipante) { await _blazorefContext.EventoParticipante.AddAsync(eventoparticipante); await _blazorefContext.SaveChangesAsync(); }
//Adiciona um participante public async Task Create(Participante participante) { await _eventoContext.Participante.AddAsync(participante); await _eventoContext.SaveChangesAsync(); }