User1168443798 posted
Hi shishir1986,
Could you share us a simple webservice.sln project and an implementation of putting audtitMethod in all the Save and Update methods IN EACH ASMX.CS FILES? Then we could try to simplify it.
It seems you have multiple asmx web service in your service project solution, and you want to add a common method for every web service. If so, you could add a basic service class like below, and inherit it from basic service. Then the added service will
contain the basic method.
Basic Service
public class BasicService : System.Web.Services.WebService
{
[WebMethod]
public string CommonFun()
{
return "Common Function";
}
}
Other Service
public class WebService1 : BasicService
{
[WebMethod]
public string HelloWorld()
{
return "Hello World";
}
}
Best Regards,
Edward