예제 #1
0
        public ActionResult Details(int id = 0)
        {
            ViewBag.Title = "Подробнее об авторе";
            var book = _bookContext.GetAuthor(id);

            if (book == null)
            {
                return(HttpNotFound());
            }

            return(View(book));
        }