我想知道如何使用REST控制台(chrome插件)发送参数'foo'.他应该作为JSON发送.
大段引用
public class ComandaEletronicaWSController : Controller
{
[HttpPost]
public JsonResult ComandaServlet(Foo foo)
{
var action = Request.QueryString["Action"];
return Json(new { Ok = true });
}
}
public class Foo
{
public int bar { get; set; }
public int beer { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3407 次 |
| 最近记录: |