コード例 #1
0
        public ActionResult Detail(int?id)
        {
            //var comicBook = new ComicBooks()
            //{
            //    SeriesTitle = "The Amazing Spider-Man",
            //    IssueNumber = 700,
            //    DescriptionHtml = "<p>Final issue! Witness the final hours of Doctor Octopus' life and his one, last, great act of revenge! Even if Spider-Man survives... <strong>will Peter Parker?</strong></p>",
            //    Artists = new Artists[]
            //    {
            //        new Artists() { Name="Dan Slott",Role="Script" },
            //        new Artists() { Name="Humberto Ramos",Role="Pencils" },
            //        new Artists() { Name="Victor Olazaba",Role="Inks" },
            //        new Artists() { Name="Edgar Delgado",Role="Colors" },
            //        new Artists() { Name="Chris Eliopoulos",Role="Letters" },
            //    }
            //};
            if (id == null)
            {
                return(HttpNotFound());
            }

            var comicBook = _comicBooksRepository.GetComicBook(id.Value);

            return(View(comicBook));
        }