예제 #1
0
        // GET: AdminController/Create
        public ActionResult Create()
        {
            ViewBag.GenreId  = DropDownFormatter.FormatGenres();
            ViewBag.AuthorId = DropDownFormatter.FormatAuthors();

            return(View());
        }
예제 #2
0
        // GET: AdminController/Edit/5
        public ActionResult Edit(int id)
        {
            var book = BookStoreFunctions.GetFullBookById(id);

            ViewBag.GenreId  = DropDownFormatter.FormatGenres();
            ViewBag.AuthorId = DropDownFormatter.FormatAuthors();
            return(View(book));
        }
예제 #3
0
        // GET: AdminController/Edit/5
        public ActionResult Edit(int id)
        {
            var movie = BlockBusterBasicFunctions.GetFullMovieById(id);

            ViewBag.GenreId    = DropDownFormatter.FormatGenres();
            ViewBag.DirectorId = DropDownFormatter.FormatDirectors();
            return(View(movie));
        }