Beispiel #1
0
 public async Task LoadLazyData(HttpRequestBase request, HttpResponseBase response, Int64 userId)
 {
     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.LoadLazyData((prms) => prms.Set("UserId", userId), json, response.Output);
     }
     catch (Exception ex)
     {
         _baseController.WriteExceptionStatus(ex, response);
     }
 }