Web api not supporting POST method

后端 未结 6 1402
不知归路
不知归路 2020-12-10 10:47

In my web api controller i have a function with following codes

       [HttpPost]
        public HttpResponseMessage Post(string schooltypeName)
        {
           


        
6条回答
  •  自闭症患者
    2020-12-10 11:17

    What helped to me at the end was adding the Route attribute, and just repeating there the same route which as registered globally.

提交回复
热议问题