Пример #1
0
 public async Task <IEnumerable <ActiveItemCategoryContract> > GetAllActiveItemCategories()
 {
     return(await apiClient.GetAllActiveItemCategories());
 }
        public async Task <IEnumerable <ItemCategory> > GetAllActiveItemCategoriesAsync()
        {
            var itemCategories = await client.GetAllActiveItemCategories();

            return(itemCategories.Select(cat => cat.ToModel()));
        }