In my web api controller i have a function with following codes
[HttpPost] public HttpResponseMessage Post(string schooltypeName) {
See the using namespace at the top of the controller, if you're using System.Web.Mvc, then this problem might be occurred:
Use this:
using System.Web.Http;