ContentResult directive or assembly missing?
<p>I have the following code:</p>

<pre><code>            var resultData = new { d = sqlObject.ToArray() };
            ContentResult result = new ContentResult();
            result.Content = serializer.Serialize(resultData);
            result.ContentType = "application/json";
            return result;
</code></pre>

<p>But they keep prompting that the type or the namespace name cannot be found. Are you missing an directive or assembly.</p>

<p>Are there any solutions to do? Urgent please help!
I am developing on asp.net</p>
