Exemple #1
0
        public async Task <List <Item> > GetItems()
        {
            var manager          = SquidexClientManager.FromOption(_configuration.ToSquidexOptions());
            var clientExperience = manager.GetClient <Item, _Item>("experience");
            var resultExperience = await clientExperience.GetAsync(context : SquidexParser.DefaultContext("tr"));

            return(resultExperience.Items.OrderBy(x => x.Data.OrderNo).ToList());
        }
Exemple #2
0
        public async Task <Item> GetItem()
        {
            var manager           = SquidexClientManager.FromOption(_configuration.ToSquidexOptions());
            var clientInformation = manager.GetClient <Item, _Item>("information");
            var resultInformation = await clientInformation.GetAsync(context : SquidexParser.DefaultContext("tr"));

            return(resultInformation.Items.FirstOrDefault());
        }