【发布时间】:2017-05-14 19:50:44
【问题描述】:
我有以下 asp.net 方法,我想将其转换为 .asmx Web 服务。我怎么能做到这一点。请帮忙。
public ActionResult AddCpty(string Id, string Type)
{
//code for Addcp
return result;
}
我正在尝试通过在方法顶部放置[WebMethod] 属性来转换它。
[WebMethod]
public ActionResult AddCpty(string Id, string Type)
{
//code for Addcp
return result;
}
【问题讨论】:
标签: c# asp.net web-services web