public async Task <List <MenuCategoryItem> > GetMenuCategoryItems(int menu_cat_id) { _restResponse = await _rest.GetRequest("v1/menuitems/" + menu_cat_id + "/cat-item"); List <MenuCategoryItem> menuCategoryList = ObjectBuilder.BuildCategoryItemList(_restResponse); return(menuCategoryList); }
private static async void CallMenuCategoryItemsRest(int menuCategoryMenuCatId) { IRestResponse restResponse = await _rest.GetRequest($"v1/menuitems/{menuCategoryMenuCatId}/cat-item"); if (restResponse != null) { List <MenuCategoryItem> categoryItemList = ObjectBuilder.BuildCategoryItemList(restResponse); if (categoryItemList != null) { Console.WriteLine("------------------------------"); foreach (var categoryItem in categoryItemList) { Console.WriteLine(categoryItem.MENU_ITEM_NAME); //Console.WriteLine(categoryItem.MENU_ITEM_DESC); var sizes = categoryItem.GetSizes(categoryItem.SIZES); //order.GetOrderItems(order.ORDER_DETAILS); } } //Console.WriteLine("------------------------------"); } }