public ActionResult <StudentDto> Create([FromBody] StudentForCreatingDto studentForCreatingDto) { var studentEntity = _mapper.Map <Entities.Student>(studentForCreatingDto); _repository.AddStudent(studentEntity); _repository.Save(); var studentToReturn = _mapper.Map <StudentDto>(studentEntity); return(CreatedAtRoute("GetStudent", new { studentId = studentToReturn.Id }, studentToReturn)); }