[OperationContract]
[WebGet(RequestFormat = WebMessageFormat.Json)]
public MyEmployee DoWorksINGLE()
{
return new MyEmployee("Bad", "Munner");
}
[DataContract]
public class MyEmployee
{
public string FirstName = "";
public string LastName = "";
public MyEmployee(string F, string L)
{
FirstName = F;
LastName = L;
}
}
I get following out put.
{"d":{"__type":"MyService.MyEmployee:#efleet"}}
Only the name of object not the values. can someone help?