Пример #1
0
        // GET: Student/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Student student = studentCRUD.Read((int)id);

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