public override void OnActionExecuting(HttpActionContext ActionContext)
{string json = "{\"result\":\"true\"}";
ActionContext.Response = new HttpResponseMessage { Content = new StringContent(json, System.Text.Encoding.UTF8, "application/json") };}
本文共 306 字,大约阅读时间需要 1 分钟。
public override void OnActionExecuting(HttpActionContext ActionContext)
{string json = "{\"result\":\"true\"}";
ActionContext.Response = new HttpResponseMessage { Content = new StringContent(json, System.Text.Encoding.UTF8, "application/json") };}
转载于:https://www.cnblogs.com/xiguanjiandan/p/5067333.html