Is it possible to define more then one function in AJAX Enabled WCF Service ?
For instance:
[OperationContract]
public string GreetUser(string uname)
{
return "Hello " + uname;
}
public string DeleteUser(string uname)
{
return "Hello " + uname;
}
Just add an
[OperationContract]aboveDeleteUser.Note that you cannot overload a function/method using WCF Services. The names have to be unique. You can change the OperationContract Name attribute to fix overloaded functions/methods.