I have a WCF Service in my project which returns "ID and Name" in List<>. I need to access this within same project and convert the return values into DataTable and bind it into Dropdown list. How to use it using Newtonsoft.Json.
My WCF Service is:
[OperationContract]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Wrapped,
UriTemplate = "getname/{formid}")]
List<GetNameInfo> getname(string formid)
.cs file is
public List<GetNameInfo> getname(string formid)
{
&n ...
Go to the complete details ...