title: Call stored procedure with parameters using Web API
body: <p>When I execute this stored procedure in SQL Server:</p>
  
  <pre><code>use Vcom
  go
  exec abrir_turno @posto = 'pppe', @turno = '3', @data = '2016-06-13'
  </code></pre>
  
  <p>SQL Server returns a message: </p>
  
  <blockquote>
    <p>your SP set pppe to open</p>
  </blockquote>
  
  <p>I am trying to implement that using Web Api 2 with C#:  </p>
  
  <pre><code>public IEnumerable&lt;string&gt; spabrirturno(string posto, string turno, string data, string STATUS_TURNO)
  {
     STATUS_TURNO = null;
  
     return obj.abrir_turno(posto, turno, data, STATUS_TURNO).AsEnumerable();
  }
  </code></pre>
  
  <p>But I get an error: </p>
  
  <blockquote>
    <p>cannot implicitly convert type IEnumerable to string</p>
  </blockquote>
  
  <p>message in photo... </p>
  
  <p><a href="https://i.stack.imgur.com/Uhbvb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uhbvb.png" alt="enter image description here"></a></p>