public AlunoMatriculadoDTO Editar(AlunoMatriculadoDTO aluno) { var alunoMapeado = AutoMapper.Mapper.Map <AlunoMatriculado>(aluno); var alunoDto = alunoDal.Editar(alunoMapeado); return(AutoMapper.Mapper.Map <AlunoMatriculadoDTO>(alunoDto)); }
public void Salvar(AlunoMatriculadoDTO aluno) { var alunoMapeado = AutoMapper.Mapper.Map <AlunoMatriculado>(aluno); // Regra de negócio alunoDal.Incluir(alunoMapeado); }
public void SalvarAluno(AlunoMatriculadoDTO aluno) { //AlunoMatriculado aluno = new AlunoMatriculado(); //aluno.id_usuario = usuario; //aluno.id_instituicao = instituicao; //aluno.id_curso = curso; var alunoMapeado = AutoMapper.Mapper.Map <AlunoMatriculado>(aluno); // Regra de negócio alunoDal.Incluir(alunoMapeado); }
public AlunoMatriculadoDTO EditarAluno([FromBody] AlunoMatriculadoDTO aluno) { return(_alunoService.Editar(aluno)); }
public void SalvarAluno([FromBody] AlunoMatriculadoDTO aluno) { _alunoService.Salvar(aluno); }