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<ProductModel>();
- var client = new RestClient($"https://localhost:77321/Product/Create");
- var request = new RestRequest(Method.POST);
- IRestResponse response = await client.ExecuteAsync(request);