示例#1
0
        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));
        }
示例#2
0
 public Task <int> RealizaMatriculaAsync(IMatricula matricula)
 {
     return(Task.FromResult(10154));
 }
示例#3
0
 public async Task <int> RealizaMatriculaAsync(IMatricula matricula)
 {
     return(await matriculaRepository.RealizaMatriculaAsync(matricula));
 }