public EditAlunoResponse Edit(EditAlunoRequest aluno) { var entity = _repository.SelectById(aluno.IdAluno); entity.ChangeAluno(aluno.Nome, aluno.Matricula); entity = _repository.Update(entity); return((EditAlunoResponse)entity); }
public async Task <bool> Update(Aluno aluno) { return(await _repositoryAluno.Update(aluno)); }