Post FromBody Always Null

后端 未结 6 1457
伪装坚强ぢ
伪装坚强ぢ 2020-12-29 03:01

I\'ve got a new API that I\'m building with ASP.NET Core, and I can\'t get any data POST\'ed to an endpoint.

Here\'s what the endpoint looks like:

         


        
6条回答
  •  自闭症患者
    2020-12-29 03:12

    Also, make sure those variables inside your parameter class are declared as Public, (or they'll just keep returning as null)..

提交回复
热议问题