title: DnnApiController Unable to locate a controller for "Path x". Searched in namespaces: " Namespace y"
body: <p>I am trying to create a simple web-api in DNN,</p>
  <p>Here are my codes :
  1st Register RouteMapper (I set a break-point it is being called without problem)</p>
  <pre><code>namespace Commission7.Controllers
  {
     public class RouteMapper : IServiceRouteMapper
     {
         public void RegisterRoutes(IMapRoute mapRouteManager)
         {
            mapRouteManager.MapHttpRoute(&quot;Commission7&quot;, &quot;default&quot;, &quot;{controller}/{action}/{id}&quot;, new { id = RouteParameter.Optional }, new[] { &quot;Commission7.Controllers&quot; });
         }
     }
  }
  </code></pre>
  <p>2nd The Controller :</p>
  <pre><code>namespace Commission7.Controllers
  {
     [AllowAnonymous]
     class SubmitController : DnnApiController
     {
         private readonly Commision7Context _dbContext = new Commision7Context();
  
         [AllowAnonymous]
         [HttpGet]
         public bool SaveVisits()
         {
            return true;
         }
      }
  }
  </code></pre>
  <p>And when I call it through Ajax or Direct hit from Browser with this:</p>
  <pre><code>http://localhost/dnn/DesktopModules/Commission7/api/Submit/SaveVisits
  </code></pre>
  <p>I get :</p>
  <pre><code>Unable to locate a controller for http://localhost/dnn/DesktopModules/Commission7/api/Submit/SaveVisits.  Searched in namespaces: Commission7.Controllers.
  </code></pre>
  <p>note that the Module folder is named Commission 7 and it is in the DesktopModules folder. Can anyone help me with this? Is there any config that I forgot?</p>