ExtJS致电:record.save();
执行POST api/saveEntry
Firebug显示POST数据已发送:http://pl.vc/26tre
但
[System.Web.Http.AcceptVerbs("GET", "POST")]
[System.Web.Http.HttpGet]
public Dictionary<string,string> SaveEntry(EntryModel entry=null)
抛出EntryModel类型无法处理的错误(代码500),
public Dictionary<string,string> SaveEntry(string entry=null)
有(entry == null)
和
public Dictionary<string,string> SaveEntry(HttpRequestMessage req=null)
有(req==null)
。
有没有办法获取json数据?