示例#1
0
        private List <MovieCategory> CreateReleasedCountry()
        {
            List <MovieCategory> list           = new List <MovieCategory>();
            MovieCategory        movieCategory1 = new MovieCategory()
            {
                RootCateory = "Country",
                Title       = "US",
                Url         = "us"
            };

            list.Add(movieCategory1);
            MovieCategory movieCategory2 = new MovieCategory()
            {
                RootCateory = "Country",
                Title       = "UK",
                Url         = "uk"
            };

            list.Add(movieCategory2);
            MovieCategory movieCategory3 = new MovieCategory()
            {
                RootCateory = "Country",
                Title       = "Canada",
                Url         = "ca"
            };

            list.Add(movieCategory3);
            MovieCategory movieCategory4 = new MovieCategory()
            {
                RootCateory = "Country",
                Title       = "Australia",
                Url         = "au"
            };

            list.Add(movieCategory4);
            MovieCategory movieCategory5 = new MovieCategory()
            {
                RootCateory = "Country",
                Title       = "India",
                Url         = "in"
            };

            list.Add(movieCategory5);
            return(list);
        }
示例#2
0
        private List <MovieCategory> CreateReleasedYear()
        {
            List <MovieCategory> list = new List <MovieCategory>();
            int num1 = 2015;

            for (int index = 0; index < 5; ++index)
            {
                int           num2           = num1 - index;
                MovieCategory movieCategory2 = new MovieCategory()
                {
                    RootCateory = "Released Year",
                    Title       = num2.ToString(),
                    Url         = num2.ToString()
                };
                list.Add(movieCategory2);
            }
            return(list);
        }
示例#3
0
        private List <MovieCategory> createCategorys()
        {
            List <MovieCategory> list           = new List <MovieCategory>();
            MovieCategory        movieCategory1 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Action",
                Url         = "the-loai/phim-hanh-dong/"
            };

            list.Add(movieCategory1);
            MovieCategory movieCategory2 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Adventure",
                Url         = "the-loai/phim-phieu-luu/"
            };

            list.Add(movieCategory2);
            MovieCategory movieCategory3 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Animation",
                Url         = "the-loai/phim-hoat-hinh/"
            };

            list.Add(movieCategory3);
            MovieCategory movieCategory4 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Biography",
                Url         = "the-loai/phim-vien-tuong/"
            };

            list.Add(movieCategory4);
            MovieCategory movieCategory5 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Comedy",
                Url         = "the-loai/phim-hai-huoc/"
            };

            list.Add(movieCategory5);
            MovieCategory movieCategory6 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Crime",
                Url         = "the-loai/phim-hinh-su/"
            };

            list.Add(movieCategory6);
            MovieCategory movieCategory7 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Documentary",
                Url         = "the-loai/phim-tai-lieu/"
            };

            list.Add(movieCategory7);
            MovieCategory movieCategory8 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Family",
                Url         = "the-loai/phim-gia-dinh/"
            };

            list.Add(movieCategory8);
            MovieCategory movieCategory9 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Horror",
                Url         = "the-loai/phim-kinh-di/"
            };

            list.Add(movieCategory9);
            MovieCategory movieCategory10 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Kids",
                Url         = "the-loai/phim-hoat-hinh/"
            };

            list.Add(movieCategory10);
            MovieCategory movieCategory11 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Mystery",
                Url         = "the-loai/phim-than-thoai/"
            };

            list.Add(movieCategory11);
            MovieCategory movieCategory12 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "Sport & Music",
                Url         = "the-loai/phim-the-thao-am-nhac/"
            };

            list.Add(movieCategory12);
            MovieCategory movieCategory13 = new MovieCategory()
            {
                RootCateory = "GENRE",
                Title       = "War",
                Url         = "the-loai/phim-chien-tranh/"
            };

            list.Add(movieCategory13);
            return(list);
        }