Beispiel #1
0
        public void OnPost()
        {
            Movies = MovieDatabase.All;

            if (search != null)
            {
                Movies = MovieDatabase.Search(Movies, search);
            }

            if (rating.Count != 0)
            {
                Movies = MovieDatabase.FilterbyMPAA(Movies, rating);
            }

            if (minIMDB != null)
            {
                Movies = MovieDatabase.FilterbyMinIMDBRating(Movies, (float)minIMDB);
            }

            if (maxIMDB != null)
            {
                Movies = MovieDatabase.FilterbyMaxIMDBRating(Movies, (float)maxIMDB);
            }
        }