title: How to convert C# Asp.Net IActionResult to string?
body: <p>This method:</p>
  
  <pre><code>public IActionResult Index(string CatId)
  </code></pre>
  
  <p>might return</p>
  
  <pre><code>NotFound("Cat does not exist");
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>this.Content(catname);
  </code></pre>
  
  <p>However, here's what actually is returned if the cat is found:</p>
  
  <p><strong>Microsoft.AspNetCore.Mvc.ContentResult</strong></p>
  
  <p>How do I get the string that I really want?</p>