I have this REST WCF service.
[WebInvoke(UriTemplate = "/GetNames/{Category}?order=asc", Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
public List<Names> GetNames(string Category)
{
//Code to retrieve Names by category.
}
The Category parameter is mapped to {Category}
in the Uri.
But how can I map the order query string in the Uri to this method?
Adding the order as a parameter method is not working.
please help. thanks in advance.
{ }
) on the editor toolbar to nicely format and syntax highlight it! If you post error messages, please use the blockquotes ( ` " ` ) to properly format the error message. – Decencies