コード例 #1
0
ファイル: FlagsController.cs プロジェクト: pnm563/Flags
        public ActionResult GetAll()
        {
            Dictionary <string, string> inbound = new Dictionary <string, string>
            {
                ["all"] = "3"
            };


            List <Flag> fullList = FlagsAPIClient.GetAsync <List <Flag> >(
                ConfigurationManager.AppSettings[ConfigurationParams.WCAPIURLScheme],
                ConfigurationManager.AppSettings[ConfigurationParams.WCAPIHost],
                ConfigurationParams.FlagsAllURN,
                inbound

                ).OrderBy(x => x.Description).ToList();

            IEnumerable <IEnumerable <Flag> > thing = Paginate.splitList(fullList, 3);

            return(View(thing));
        }