// GET: Students/Details/5
        public async Task <ActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Student student = await _studentRepository.GetById(id);

            if (student == null)
            {
                return(HttpNotFound());
            }
            return(View(student));
        }