【发布时间】:2013-08-30 13:49:48
【问题描述】:
我有一个非常简单的 MVC 模型,其中我有两个非常简单的模型类 Person 和 Company。
我必须使用 Web 服务来获取有关人员和公司的数据。
能否请您发布一些示例链接,其中 Web 服务用于 GET 或/和 POST。
这是我的控制器索引方法。
public ActionResult Index(string id)
{
Webservice webservice = new Webservice();
}
[HttpPost]
public ActionResult Index(string id)
{
Webservice webservice = new Webservice();
}
我不知道上面的代码是用Get还是Post写。
【问题讨论】:
标签: c# asp.net-mvc wcf web-services