0
图形API的Facebook,如果你不提供有效令牌返回该错误。返回JSON异常
在WCF与.NET 4我怎么能返回相同的Json“异常”用这种方法:
[WebGet(UriTemplate = "{id}")]
public SampleItem Get(string id)
{
if (id.Length != 4)
"how to return here the error since this method return a sample item class"????
else
return rep.GetSampleByID(id);
}
你问如何构建一个复制Facebook API响应的JSON字符串? – diagonalbatman 2011-01-09 13:48:39