コード例 #1
0
        // GET: Teachers/Details/5
        public IActionResult Details(long id)
        {
            if (id < 1)
            {
                return(NotFound());
            }

            var teacher = teacherDAO.GetById(id);

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

            return(View(teacher));
        }