public async Task <Tarefa> InsertTarefaAsync(Tarefa tarefa, string userId) { var participante = await _participanteRepository.GetParticipanteByIdAndListaId(tarefa.ListaId, userId); tarefa.setParticipante(participante); context.Add(tarefa); await context.SaveChangesAsync(); return(tarefa); }