title: ASP.NET Core Web Api Error for IhttpActionResult
body: <p>I am trying to create a new Core Web API app for the first time. I am using Core 2.2</p>
  
  <p>I did some research but did not find the correct answer. Not sure if I am using wrong libraries. </p>
  
  <p>cannot implicitly convert type microsoft.aspnetcore.mvc.okresult to system.web.http.Ihttpactionresult</p>
  
  <p>Here is my Code</p>
  
  <pre><code>using System.Threading.Tasks;
  using System.Web.Http;
  using Microsoft.AspNetCore.Mvc;
  
  [Microsoft.AspNetCore.Mvc.Route("api/User")]
  [ApiController]
  public class UserController : ControllerBase
  {
      [Microsoft.AspNetCore.Mvc.HttpGet]
      public async Task&lt;IHttpActionResult&gt; GetAllUsers()
      {
          var users = await this.GetUserAsync();
          return this.Ok(users);
      }
  }
  </code></pre>