Example #1
0
        public ActionResult MovieInfo(bool isInWatchlist = false)
        {
            String name = Request.QueryString["Name"];
            Movie  m    = movies.GetMovieInfo(name);

            if (m != null)
            {
                ViewBag.InWatchlist = false;
                if (isInWatchlist)
                {
                    ViewBag.InWatchlist = true;
                }
                return(View(m));
            }

            else
            {
                return(RedirectToAction("Index"));
            }
        }