Ich habe folgende asp.net Methode, die ich in .asmx Web-Service konvertieren möchte. Wie kann ich das machen? Irgendwelche Hilfe bitte.Wie konvertiere ich eine ASP.NET-Methode zu ASP.NET .asmx Web-Service
public ActionResult AddCpty(string Id, string Type)
{
//code for Addcp
return result;
}
Ich versuche, es zu konvertieren, indem ein [WebMethod]
Attribut auf der Oberseite des Verfahrens stellen.
[WebMethod]
public ActionResult AddCpty(string Id, string Type)
{
//code for Addcp
return result;
}