public void WriteFailure(HttpContext context, string systemResultsFailureStr = "", bool isEnd = false) { var obj = new SystemResults().returnFailure(systemResultsFailureStr); context.Response.Write(JSON.Encode(obj)); if (isEnd) context.Response.End(); }
public void WriteSuccess(HttpContext context, object systemResultsSuccessObj = null, bool isEnd = false) { var obj = new SystemResults().returnSuccess(systemResultsSuccessObj); context.Response.Write(JSON.Encode(obj)); if (isEnd) context.Response.End(); }