Exemple #1
0
        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));
        }