Exemplo n.º 1
0
        // GET: Students/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            // Student student = db.Students.Find(id);
            Student student = db.FindById(Convert.ToInt32(id));

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