0
我有以下asp.net方法,我想将其转换为.asmx Web服务。我如何做到这一点。请任何帮助。如何将ASP.NET方法转换为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;
}