コード例 #1
0
 public async Task LoadData(HttpRequestBase request, HttpResponseBase response)
 {
     if (request.HttpMethod != "POST")
     {
         return;
     }
     response.ContentType = "application/json";
     try
     {
         String json = null;
         using (var tr = new StreamReader(request.InputStream))
             json = tr.ReadToEnd();
         await _baseController.ReloadData(null, json, response.Output);
     }
     catch (Exception ex)
     {
         _baseController.WriteExceptionStatus(ex, response);
     }
 }