WebApi Filter 中断返回字符串信息
public override void OnActionExecuting(HttpActionContext ActionContext)
{
string json = "{\"result\":\"true\"}";
ActionContext.Response = new HttpResponseMessage { Content = new StringContent(json, System.Text.Encoding.UTF8, "application/json") };
}