// GET: Students/Details/id
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(BadRequest());
            }

            var student = await _studentRepository
                          .GetStudentById(id.Value);

            if (student == null)
            {
                return(NotFound());
            }

            var studentVm = StudentViewModel.CreateStudentVm(student);

            return(View(studentVm));
        }