Пример #1
0
        public override async Task Remove(Guid id)
        {
            var cursosProfessor = await _cursoRepository.BuscarCursosProfessor(id);

            await _cursoRepository.RemoveInScale(cursosProfessor.ToList());

            var enderecoProfessor = await _enderecoRepository.ObterEnderecoProfessor(id);

            if (enderecoProfessor != null)
            {
                await _enderecoRepository.Remove(enderecoProfessor.Id);
            }

            await base.Remove(id);
        }
Пример #2
0
 public async Task <IEnumerable <Curso> > BuscarCursosProfessor(Guid professorId)
 {
     return(await _cursoRepository.BuscarCursosProfessor(professorId));
 }