title: Apicontroller inside mvc project - httppost and json method isn't recognized
body: <p>I have a normal ASP.NET MVC project (not Web API). Here I created a new folder inside my controllers called "api", as I want to create a simple api.</p>
  
  <p>I then create the following class:</p>
  
  <pre><code>public class OfficeProductController : ApiController
  {
      [HttpPost]
      public JsonResult Create(OfficeProductViewModel model)
      {
          var obj = new OfficeProductViewModel();
          return Json(obj);
      }
  }
  </code></pre>
  
  <p>Here I get two problems:</p>
  
  <ul>
  <li>HttpPost: results in "Ambiguous reference" (between the Http.HttpPostAttribute and the Mvc.HttpPostAttribute)</li>
  <li>Json() isn't recognized. It simply gives me a "cannot resolve symbol Json"</li>
  </ul>
  
  <p>If I remember correctly, this would work in a web api project.</p>
  
  <p>What am I doing wrong? Something I need to add? </p>