public async Task <IActionResult> GetStudent(int id) { var student = await _repo.GetStudent(id); var studentToReturn = _mapper.Map <StudentForDetailedDto>(student); return(Ok(studentToReturn)); }