title: How to access web api method by using WebapiConfig?
body: <p>i would like to access below methods but i can not access "<a href="http://www.test.com:46707/rpc/RealmStatus/RealmByPopulationName/2/Vindication" rel="nofollow">http://www.test.com:46707/rpc/RealmStatus/RealmByPopulationName/2/Vindication</a>"  </p>
  
  <pre><code>    [ActionName("RealmByPopulationName")]
        public IEnumerable&lt;MyRealmStatus&gt; GetRealmsByBattleGroupName(int regionid, string battlegroupname)
        {
               //dosomething...
         }
  </code></pre>
  
  <p>My webApiConfig.cs below </p>
  
  <pre><code> public static class WebApiConfig
  {
      public static void Register(HttpConfiguration config)
      {
          config.Routes.MapHttpRoute(
              name: "DefaultApi",
              routeTemplate: "api/{controller}/{regionid}",
              defaults: new { id = RouteParameter.Optional }
          );
  
          config.Routes.MapHttpRoute(
              name: "GetData",
              routeTemplate: "api/{controller}/{regionid}/{id}"
          );
  
  
           config.Routes.MapHttpRoute(
               name: "RpcApi",
               routeTemplate: "rpc/{controller}/{action}/{regionid}",
               defaults: new { action = "Get" }
          );
  
           config.Routes.MapHttpRoute(
               name: "RpcApi2",
               routeTemplate: "rpc/{controller}/{action}/{regionid}/{quality}/",
               defaults: new { action = "Get" }
          );
  
           config.Routes.MapHttpRoute(
              name: "RpcApi3",
              routeTemplate: "rpc/{controller}/{action}/{regionid}/{battlegroupname}/",
              defaults: new { action = "Get" }
         );
      }
  }
  </code></pre>
  
  <p>Error occurs i can not access GetRealmsByBattleGroupName </p>
  
  <p>Result of "<a href="http://www.test.com:46707/rpc/RealmStatus/RealmByPopulationName/2/Vindication" rel="nofollow">http://www.test.com:46707/rpc/RealmStatus/RealmByPopulationName/2/Vindication</a>" :</p>
  
  <pre><code>&lt;Error&gt;
  </code></pre>
  
  <p>
  No HTTP resource was found that matches the request URI '<a href="http://www.test.com:46707/rpc/RealmStatus/RealmByPopulationName/2/Vindication" rel="nofollow">http://www.test.com:46707/rpc/RealmStatus/RealmByPopulationName/2/Vindication</a>'.
  
  
  No action was found on the controller 'RealmStatus' that matches the request.
  
  </p>