title: How to use MS Sql Stored Procedure in Asp.Net MVC4
body: <p>Im using VS2012, MVC4 C#, SQL 2008 R2</p>
  
  <p>I have a stored procedure which returns a list contains two computed columns. In my SP I have two parameters which I need to pass from View, these parameters will be generated from javascript on page load and stored in HiddenFields. </p>
  
  <p>I have followed this <a href="https://stackoverflow.com/questions/8864271/calling-a-stored-procedure-mvc4" title="POST">Post</a>, when I created a reference like</p>
  
  <pre><code>Rest Context = new Rest();
  List&lt;Rest&gt; RT = Context.ExecuteStoreQuery......
  </code></pre>
  
  <p>I get an error.</p>
  
  <p>Could someone tell me the right way to call a stored procedure and pass values from View.</p>