title: Returning Dataset to controller in asp.net MVC
body: <p>In Data access layer I have method to retrieve all the table values. How can I return it into the controller in asp.net MVC. can anyone help me?</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>public static Dataset GetMembers()
  { 
      //sql steps to retrieve records and fill it in dataset 
  } 
  </code></pre>
  
  <p>Controller code: </p>
  
  <pre><code>{
      var members = class.GetMembers()
  
      return View(members);
  }
  </code></pre>