public Task <IMatricula> EspelhoMatriculaAsync(int idAluno) { IMatricula matricula = DataFake.DataFake.matriculas().Where(x => x.Aluno.IdAluno == idAluno).FirstOrDefault(); matricula.DisciplinaMatricula = new List <IDisciplinaMatricula>(DataFake.DataFake.disciplinaMatriculas().Where(x => x.Matricula.IdMatricula == matricula.IdMatricula).ToList()); return(Task.FromResult(matricula)); }
public Task <int> RealizaMatriculaAsync(IMatricula matricula) { return(Task.FromResult(10154)); }
public async Task <int> RealizaMatriculaAsync(IMatricula matricula) { return(await matriculaRepository.RealizaMatriculaAsync(matricula)); }