public async Task <IEnumerable <ProductRespone> > GetProductsByCategory(int categoryId) { var res = await _client.GetAsync(EndPoints.GetProductByCategory(categoryId)); res.EnsureSuccessStatusCode(); var products = await res.Content.ReadAsAsync <IEnumerable <ProductRespone> >(); return(products); }