title: MVC 4 return JSON as ActionResult
body: <p>i'm trying to get my apicontroller to work. But somehow i cannot return <code>Json()</code>. </p>
  
  <p><strong>Here's the error message from the compiler:</strong></p>
  
  <blockquote>
    <p>Error CS0029  Cannot implicitly convert type
    'System.Web.Http.Results.JsonResult&lt;>'
    to
    'System.Web.Mvc.JsonResult'   Opten.Polyglott.Web D:\Development\git\Opten.Polyglott\src\Opten.Polyglott.Web\Controllers\NewsletterApiController.cs</p>
  </blockquote>
  
  <p>I cannot explain why it cannot convert the <code>Json()</code> to the <code>ActionResult</code> even the <code>Json()</code>inherits <code>ActionResult</code>.</p>
  
  <p><strong>Here's my controller:</strong></p>
  
  <pre><code>using MailChimp;
  using MailChimp.Helper;
  using Opten.Polyglott.Web.Models;
  using Opten.Umbraco.Common.Extensions;
  using System.Configuration;
  using System.Web.Mvc;
  using Umbraco.Core.Logging;
  using Umbraco.Web.WebApi;
  
  namespace Opten.Polyglott.Web.Controllers
  {
      public class NewsletterApiController : UmbracoApiController
      {
          public ActionResult Subscribe(Newsletter newsletter)
          {
              bool isSuccessful = false;
              if (ModelState.IsValid)
              {
                  isSuccessful = SubscribeEmail(newsletter.Email);
              }
  
              return Json(new { isSuccess = isSuccessful });
          }
      }
  }
  </code></pre>
  
  <p>Thanks for any help.</p>