No overload for method 'ToString' takes 1 arguments : <p>I have a Web API runs a stored procedure and returns the records from the table.The record includes the int field called CounterSeq</p>

<pre><code>[HttpGet]
public IHttpActionResult Get(string Account)
{
  // other code for connecting to the SQL seerver and calling the stored procedure
 reader = command.ExecuteReader(); 
 List&lt;QueryResult&gt;qresults = new List&lt;QueryResult&gt;();
  while (reader.Read())
 {  
   QueryResult qr = new QueryResult();
   qr.AccountID = reader["AccountID"].ToString();
   qr.CounterSeq = reader["CounterSeq"].ToString("000");
   qresults.Add(qr);
 }
 DbConnection.Close();
 return Ok(qresults); 
</code></pre>

<p>To have the CounterSeq to have the response as "001","010","100". It thows the error like <code>No overload for method 'ToString' takes 1 arguments</code> in <code>reader["CounterSeq"].ToString("000");</code></p>
