-
How to Hit Delete API of MVC5
about 9 years ago
-
about 9 years ago
Hi Abhishek,
few days back, I also faced the same problem, the solution I got was instead of using ParameterType.UrlSegment, I used, ParameterType.QueryString.
Your code should look as follows:var request = new RestRequest("api/TwingleCategory/DeleteCategory", Method.DELETE); request.AddParameter("twingleCategoryId", twingleCategoryId, ParameterType.QueryString); var response = _client.Execute(request);
Hope it helps you.....!
1 Answer(s)