Using the code below I try to consume an API but I don't how to pass the parameter to post or save the model.
What code should I write?
- var product = new List
(); - var client = new RestClient($"https://localhost:77321/Product/Create");
- var request = new RestRequest(Method.POST);
- IRestResponse response = await client.ExecuteAsync(request);
Sachin SinghPosted Jan 23, 2021, 3:16 PM
Guest UserPosted Jan 23, 2021, 3:13 PM
Sachin SinghPosted Jan 23, 2021, 2:53 PM