title: 'HttpRequestBase' does not contain a definition for 'Body'
body: <p><img src="https://i.stack.imgur.com/dmhQV.png" alt="this is error snippet "></p>
  
  <p>I am trying to get datatable search value from view to controller side, but my controller returns an error:</p>
  
  <blockquote>
    <p>'HttpRequestBase' does not contain a definition for 'Body' and no accessible method 'Body'</p>
  </blockquote>
  
  <p>This is my code snippet of controller:</p>
  
  <pre><code>public ActionResult EditCustomer(int id)
  {
      string requestData = "";
  
      using (StreamReader reader = new StreamReader(Request.Body, Encoding.UTF8))
      {
          requestData = reader.ReadToEnd();
      }
  
      NameValueCollection data = HttpUtility.ParseQueryString(requestData);
      string Search = Convert.ToString(Request["search[value]"]);     
  }
  </code></pre>