コード例 #1
0
        public async Task <ProductRespone> GetProductById(int productId)
        {
            var res = await _client.GetAsync(EndPoints.GetProductById(productId));

            res.EnsureSuccessStatusCode();

            var product = await res.Content.ReadAsAsync <ProductRespone>();

            return(product);
        }