Web Api with Multiple Post in one Controller

  • Last Post 25 November 2016
  • Topic Is Solved
erportico posted this 25 November 2016

Hi All,

I have 2 post method in 1 controller.

public string Hello(string msg)
   return msg;
public string HelloAgain(string msg)
   return msg;

I have this error, when trying to call the api

Multiple actions were found that match the request

Can anyone tell me how to solved this one


Thank you in advance!

admin posted this 25 November 2016

If you want to support action-based routing (that is, the action name is part of the URI), then you need to update your route on WebApiConfig under App_Start to


  • Liked by
  • erportico