// GET: AdminController/Create public ActionResult Create() { ViewBag.GenreId = DropDownFormatter.FormatGenres(); ViewBag.AuthorId = DropDownFormatter.FormatAuthors(); return(View()); }
// 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)); }
// 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)); }