// GET: Gift
        // GET: Gift/{page}
        public ActionResult Index(int page)
        {
            /*
             * For Mockup
             */

            var logic = new GiftLogic();
            var gifts = logic.SelectGift();

            var listViewModel = new GiftListViewModel
            {
                SearchCondition = new GiftSearchConditionViewModel
                {
                    CountrySelectList = new SelectList(
                        new Dictionary <int, string>
                    {
                        { 0, "選択してください" },
                        { 1, "日本" },
                        { 2, "フランス" }
                    },
                        "Key",
                        "Value",
                        0)
                },
                Gifts = PagedListHelper.NewInstance(gifts, page)
            };

            return(View(listViewModel));
        }
        // GET: /Mariage
        // GET: /Mariage/Index?page={page}
        public ActionResult Index(int?page)
        {
            var countries = new SelectList(
                new Dictionary <int, string>
            {
                { 0, string.Empty },
                { 1, "日本" },
                { 2, "中国" },
                { 3, "ギリシャ" }
            },
                "Key",
                "Value"
                );

            var categories = new SelectList(
                new Dictionary <int, string>
            {
                { 0, string.Empty },
                { 1, "フルーツ" },
                { 2, "草花" },
                { 3, "樹木" }
            },
                "Key",
                "Value"
                );

            var mariages = Enumerable.Range(1, 500)
                           .Select(x => new MariageRowViewModel
            {
                Id            = x,
                ProductName   = "JA青森りんご",
                HaneyCategory = "フルーツ",
                Area          = "日本 青森県",
                FoodName      = "ロシアンティー",
                Content       = "説明...",
                Comment       = "感想..."
            });

            var vm = new MariageListViewModel
            {
                Countries       = countries,
                HoneyCategories = categories,
                SearchCond      = new MariageSearchCondViewModel(),
                Rows            = PagedListHelper.NewInstance(mariages, page ?? 1)
            };

            return(View(vm));
        }
        // GET: Honey
        public ActionResult Index(int?page)
        {
            ViewBag.honeyCategory = new List <KeyValuePair <int, string> >()
            {
                new KeyValuePair <int, string>(1, "フルーツ"),
                new KeyValuePair <int, string>(2, "草花"),
                new KeyValuePair <int, string>(3, "樹木"),
                new KeyValuePair <int, string>(4, "ハーブ"),
                new KeyValuePair <int, string>(5, "百花蜜"),
                new KeyValuePair <int, string>(6, "ナッツ"),
                new KeyValuePair <int, string>(7, "甘露蜜")
            };
            var viewModel = new HoneyListViewModel();

            var honeys = new List <HoneyListItemViewModel>();

            for (var i = 0; i < 1000; i++)
            {
                honeys.Add(new HoneyListItemViewModel()
                {
                    Id                  = i,
                    Name                = "JA青森りんご",
                    Municipal           = "日本 青森県",
                    FlowerName          = "りんご",
                    SizePriceDictionary = new Dictionary <int, int>()
                    {
                        { 100, 1404 },
                        { 250, 2592 }
                    },
                    imageBytes = null
                });
            }

            viewModel.Honeys = PagedListHelper.NewInstance(honeys, page.HasValue ? page.Value : 1);

            return(View(viewModel));
        }