Example #1
0
 async Task ApplicationCommand(String command)
 {
     //  Ajax
     if (IsNotAjax())
     {
         return;
     }
     if (Request.HttpMethod != "POST")
     {
         return;
     }
     Response.ContentType = "application/json";
     try
     {
         using (var tr = new StreamReader(Request.InputStream))
         {
             String json = tr.ReadToEnd();
             await _baseController.ApplicationCommand(command, SetSqlQueryParams, json, Response);
         }
     }
     catch (Exception ex)
     {
         WriteExceptionStatus(ex);
     }
 }