title: 'HttpRequest' does not contain a definition for 'CreateResponse' and no accessible extension method
body: <p>The below is my code. It looks HttpRequest could not able to access CreateResponse. Kindly help.</p>
  <pre><code>using System;
  using System.Net;
  using System.Net.Http;
  using Microsoft.AspNetCore.Mvc;
  
  namespace Abc.Controllers
  {
      [ApiController]
      [Route(&quot;[controller]&quot;)]
  
      public class PaymentController : Controller
      {
          public HttpResponseMessage Post()
          {
              // ... do the job
  
              // now redirect
              var response = Request.CreateResponse(HttpStatusCode.Moved);
              response.Headers.Location = new Uri(&quot;http://www.abcmvc.com&quot;);
              return response;
          }
      }
  }
  </code></pre>