public ActionResult Create(MoviePass moviePass) { MoviePassViewModel vm = new MoviePassViewModel(); vm.MoviePass = moviePass; return View(vm); }
public ActionResult Create(MoviePass moviePass) { MoviePassViewModel vm = new MoviePassViewModel(); vm.MoviePass = moviePass; return(View(vm)); }
// // GET: /MoviePass/Create public ActionResult Create() { MoviePass pass = new MoviePass { CanUseForNewReleases = true, CanSkipLine = false }; return View(pass); }
// // GET: /MoviePass/Details/5 public ActionResult Details(int? id) { MoviePass pass = new MoviePass { MovieTitle = "The Last Starfighter", CanUseForNewReleases = true, CanSkipLine = false }; return View(pass); }
// // GET: /MoviePass/Details/5 public ActionResult Details(int?id) { MoviePass pass = new MoviePass { MovieTitle = "The Last Starfighter", CanUseForNewReleases = true, CanSkipLine = false }; return(View(pass)); }
// // GET: /MoviePass/Create public ActionResult Create() { MoviePass moviePass = new MoviePass { CanUseForNewReleases = true, CanSkipLine = false }; var movieList = _repository.GetMovies().Select(m => m.Title).ToList(); MoviePassViewModel vm = new MoviePassViewModel(); vm.MoviePass = moviePass; vm.PossibleMoviesJson = new JavaScriptSerializer().Serialize(movieList); return View(vm); }
// // GET: /MoviePass/Create public ActionResult Create() { MoviePass moviePass = new MoviePass { CanUseForNewReleases = true, CanSkipLine = false }; var movieList = _repository.GetMovies().Select(m => m.Title).ToList(); MoviePassViewModel vm = new MoviePassViewModel(); vm.MoviePass = moviePass; vm.PossibleMoviesJson = new JavaScriptSerializer().Serialize(movieList); return(View(vm)); }
public ActionResult Create(MoviePass moviePass) { return View(moviePass); }