How to read/parse Content from OkNegotiatedContentResult? : <p>In one of my API actions (<code>PostOrder</code>) I <em>may</em> be consuming another action in the API (<code>CancelOrder</code>). Both return a JSON formatted <code>ResultOrderDTO</code> type, set as a <code>ResponseTypeAttribute</code> for both actions, which looks like this:</p>

<pre><code>public class ResultOrderDTO
{
    public int Id { get; set; }
    public OrderStatus StatusCode { get; set; }
    public string Status { get; set; }
    public string Description { get; set; }
    public string PaymentCode { get; set; }
    public List&lt;string&gt; Issues { get; set; }
}
</code></pre>

<p>What I need is reading/parsing the <code>ResultOrderDTO</code> response from <code>CancelOrder</code>, so that I can use it as response for <code>PostOrder</code>. This is what my <code>PostOrder</code> code looks like:</p>

<pre><code>// Here I call CancelOrder, another action in the same controller
var cancelResponse = CancelOrder(id, new CancelOrderDTO { Reason = CancelReason.Unpaid });

if (cancelResponse is OkNegotiatedContentResult&lt;ResultOrderDTO&gt;)
{
    // Here I need to read the contents of the ResultOrderDTO
}
else if (cancelResponse is InternalServerErrorResult)
{
    return ResponseMessage(Request.CreateResponse(HttpStatusCode.InternalServerError, new ResultError(ErrorCode.InternalServer)));
}
</code></pre>

<p>When I use the debugger, I can see that the <code>ResultOrderDTO</code> it is there <em>somewhere</em> in the response (looks like the <code>Content</code>) as shown in the pic below:</p>

<p><a href="https://i.stack.imgur.com/dqXJT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dqXJT.png" alt="Debugger"></a></p>

<p>but <code>cancelResponse.Content</code> does not exist (or at least I don't have access to it before I cast my response to something else) and I have no idea about how to read/parse this <code>Content</code>. Any idea?</p>
