I have a following http post and GET methods in MVC API Transaction controller;
[HttpPost] public void ImportTransactions() { // import transactions } [HttpGet] public IHttpActionResult IsApiAlive() { return Ok(); }
API service is hosted on IIS, when i run the following URL in IE or Chrome to POST data then some how service is calling GET method not post method which is odd;
http://myserver01/Ftransactions/api/Transaction/ImportTransactions
URL works fine in postman when i select POST option from the dropdown.