title: POST methods from web api not getting called.
body: <p>I'm trying to call a POST method from a web api (created inside a MVC4 project) and not able to access it.</p>
  
  <p>My web api config is as follows,</p>
  
  <pre><code>        config.Routes.MapHttpRoute(
              name: "DefaultApi",
              routeTemplate: "api/{controller}/{action}/{id}",
              defaults: new {action=RouteParameter.Optional, id = RouteParameter.Optional }
          );
  </code></pre>
  
  <p>I'm trying to call the following method,</p>
  
  <pre><code>    [HttpPost]
      public bool Delete(Int64 Id)
      {           
          return true;
      }
  </code></pre>
  
  <p>All the GET methods are getting called. </p>
  
  <p>When i'm trying to access it the browser is showing,</p>
  
  <p>"http 405 Method not allowed"</p>
  
  <p>When seeing the Response it shows like,</p>
  
  <p>{"Message":"The requested resource does not support http method 'GET'."}</p>
  
  <p>Please help me out.</p>