private static async Task GetProductsByCategory(RequestHandler myService) { string result = await myService.Run(GetCategoryUrl()); var products = JsonConvert.DeserializeObject <IEnumerable <ProductReponse> >(result); ConsoleDisplay.DisplayProducts(products); }
private static async Task GetFeaturedProducts(RequestHandler myService) { var result = await myService.Run("https://localhost:44362/api/product/featured"); var products = JsonConvert.DeserializeObject <IEnumerable <ProductReponse> >(result); ConsoleDisplay.DisplayProducts(products); }