public async Task ListCategories()
        {
            APIResponse response = await GetCategories.ExecuteStrategy(null);

            if (response.IsSuccess)
            {
                Categories = JsonConvert.DeserializeObject <List <CategoryModel> >(response.Response);
            }
            else
            {
                Exception e;
            }
        }
Пример #2
0
        public async Task ListCategories()
        {
            APIResponse response = await GetCategories.ExecuteStrategy(null);

            if (response.IsSuccess)
            {
                Categories = JsonConvert.DeserializeObject <List <CategoryModel> >(response.Response);

                /*int categoryIdxCounter = 0;
                 * foreach (var c in Categories)
                 * {
                 *  if (Product.IdCategory == c.IdCategory)
                 *  {
                 *      ProductIndexCategory = categoryIdxCounter;
                 *  }
                 *  categoryIdxCounter += 1;
                 * }*/
            }
            else
            {
                Exception e;
            }
        }