예제 #1
0
        public ActionResult Index(string movieGenre, string searchString)
        {
            var movies = from m in _moviesAppServices.GetAll()
                         select m;

            if (!String.IsNullOrEmpty(searchString))
            {
                movies = movies.Where(s => s.Title.Contains(searchString));
            }
            return(View(movies));
        }