コード例 #1
0
        public IActionResult LoadAlphabet()
        {
            var result = new AutoPopulateResult
            {
                CacheSecondsOverride = 30,
                Data = new string[]
                {
                    "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
                }
            };

            return(Ok(result));
        }
コード例 #2
0
        public IActionResult LoadComplexData()
        {
            var result = new AutoPopulateResult
            {
                CacheSecondsOverride = 30,
                Data = new
                {
                    Name        = "Alphabet",
                    Description = "This lists the alphabet",
                    Alphabet    = new string[]
                    {
                        "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
                    }
                }
            };

            return(Ok(result));
        }