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 SinghRank #66 · 26.2K reputationPosted Jan 23, 2021, 10:16 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Jan 23, 2021, 9:53 AM EST
Guest User96 reputationPosted Jan 23, 2021, 10:13 AM EST