title: How to pass xml input (request) to Web api on .net core 3.1
body: <p>I have a .net core 3.1 web api. I have tried the following but it always turns up null when it hits it</p>
  
  <pre><code>[HttpPost]     
      public IActionResult ReturnXmlDocument(HttpRequestMessage request)
      {
          var doc = new XmlDocument();
          doc.Load(request.Content.ReadAsStreamAsync().Result);        
          return Ok(doc.DocumentElement.OuterXml.ToString());
      }
  </code></pre>
  
  <p>It doent even hits it during debugging also it shows a 415 error in fiddler.</p>