Esempio n. 1
0
        public async Task <List <RestaurantCategory> > GetMetadataForCategoryAsync()
        {
            //Get function
            APIDetail api = apisJson.GetMetadataForCategory;
            //Call API
            RequestMethodFactory method = new RequestMethodFactory(api);
            var response = await method.CallApiAsync();

            var result = response.Content.ReadAsStringAsync().Result;

            return(ConvertJson.ConvertString2ListRestaurantCategories(result));
        }