Ejemplo n.º 1
0
        public void OnPost()
        {
            Movies = MovieDatabase.All;
            if (search != null)
            {
                Movies = MovieDatabase.SearchAndFilter(Movies, search);
            }

            if (mpaa.Count != 0)
            {
                Movies = MovieDatabase.FilterByMPAA(Movies, mpaa);
            }
            if (minIMDB != null)
            {
                Movies = MovieDatabase.FilterByMinMPAA(Movies, (float)minIMDB);
            }
            if (maxIMDB != null)
            {
                Movies = MovieDatabase.FilterByMaxMPAA(Movies, (float)maxIMDB);
            }
        }