Example #1
0
        public async Task CadastraAlunoAsync(AlunoEntrada aluno)
        {
            IAluno alunoModel = await alunoService.ConsultarAlunoPorCpfAsync(aluno.CPF);

            if (alunoModel != null)
            {
                return;
            }

            //alunoModel = new Aluno(alunno); Falta implementar

            await alunoService.CadastraAlunoAsync(alunoModel);
        }
Example #2
0
 public AlunoesController(IAluno context, IPessoa contextPessoa)
 {
     _context       = context;
     _contextPessoa = contextPessoa;
 }
Example #3
0
 public AlunoController(IAluno aluno)
 {
     _aluno = aluno;
 }
Example #4
0
 public HomeController(IAluno IngecaoAlunoBll)
 {
     alunoBll = IngecaoAlunoBll;
 }
Example #5
0
 public TesteDependencyInjection(IAluno aluno)
 {
     _aluno = aluno;
 }
Example #6
0
 public AlunosController(IAluno ialunos)
 {
     _ialunos = ialunos;
 }
Example #7
0
 public async Task <int> CadastraAlunoAsync(IAluno aluno)
 {
     return(await alunoRepository.CadastraAlunoAsync(aluno));
 }
Example #8
0
 public void Executar()
 {
     aluno = AlunoFactory.CriarAluno(TipoAlunoEnum.Graduacao);
 }
 public AlunoService(IAluno alunoRepository)
 {
     _alunoRepository = alunoRepository;
 }
Example #10
0
 public Task <int> CadastraAlunoAsync(IAluno aluno)
 {
     return(Task.FromResult(new Random().Next(1, 5)));
 }
Example #11
0
 public HomeController(IAluno aluno)
 {
     _context = aluno;
 }
Example #12
0
 public IAluno Excluir(IAluno a)
 {
     throw new NotImplementedException();
 }
Example #13
0
 public Aluno Cadastrar(IAluno a)
 {
     throw new NotImplementedException();
 }