title: How do I return an IEnumerable?
body: <p>I am trying to return an IEnumerable. Here is my code:</p>
  
  <pre><code>public static IEnumerable&lt;int&gt; GetAnswersIDs(int id)
  {
      using (var context = new MvcApplication4.Entity.test2Entities1())
      {
          return (from p in context.post
                    where p.post_parentid == id &amp;&amp; p.post_isdeleted == false
                    select new
                    {
                        p.post_id
                    }).ToList();
      }           
  }
  </code></pre>
  
  <p>Is it possible to return an IEnumerable object?</p>