示例#1
0
        public ActionResult Index(FormCollection collection, MovieGameModel model)
        {
            model.FirstLoad = false;

            Movie movie = new Movie();
            movie = model.GetMovieWithCast(model.Movie);

            if (movie != null)
            {
                model.Total = 1;
                model.Title = movie.title;
                model.Thumbnail = movie.posters.thumbnail;
            }
            Cast c = new Cast();
            c = movie.abridged_cast.Where(x => x.name.ToLower() == model.Actor.ToLower()).FirstOrDefault();
            if (c != null)
            {
                model.isIn = true;
                model.CharacterName = c.characters.FirstOrDefault();
            }

            return View(model);
        }
示例#2
0
 public ActionResult Index()
 {
     MovieGameModel model = new MovieGameModel();
     model.FirstLoad = true;
     return View(model);
 }