Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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();
 }