public static void ExecuteMethod_WriteContentToHttpResponse(QueryToken responseContentObject) { var httpContext = HttpContext.Current; var jsonString = JSONSupport.SerializeToJSONString(responseContentObject); httpContext.Response.Write(jsonString); httpContext.Response.ContentType = "application/json"; }
public static QueryToken GetTarget_ResponseContentObject(QueryRequest performQueryOutput) { QueryToken queryToken = new QueryToken { QueryRequestObjectDomainName = performQueryOutput.SemanticDomainName, QueryRequestObjectName = performQueryOutput.Name, QueryRequestObjectID = performQueryOutput.ID }; return queryToken; }