大家好我是新來的Asp.net Web API,我有我的問題post data using asp.net Web API並得到我的答案接受。在asp.net web API中發佈數據頭
這是一個擴展,我要張貼在郵遞員一些頭值數據同樣的問題,我的代碼如下
public HttpResponseMessage PostCustomer([FromBody] NewUser userData, string devideId)
{
//My code
return response;
}
當我打這郵差傳遞值JSON格式BODY - 原始我得到的消息如下
未找到與請求URI相匹配的HTTP資源 在與請求匹配的控制器上未找到任何操作。
請幫幫我。
顯示你的路由配置,以及如何準確地發送該請求。 – CodeCaster