Exemplo n.º 1
0
        public EditAlunoResponse Edit(EditAlunoRequest aluno)
        {
            var entity = _repository.SelectById(aluno.IdAluno);

            entity.ChangeAluno(aluno.Nome, aluno.Matricula);
            entity = _repository.Update(entity);
            return((EditAlunoResponse)entity);
        }
Exemplo n.º 2
0
 public async Task <bool> Update(Aluno aluno)
 {
     return(await _repositoryAluno.Update(aluno));
 }