title: Angular - NetworkError: 404 Not Found - http://localhost:3094/api/Controller/Action/
body: <p>I'm going to post my string to api, but every time I have got such error. However,by fiddler it's working fine</p>
  
  <pre><code>NetworkError: 404 Not Found - http://localhost:3094/api/Controller/Action/
  </code></pre>
  
  <p>It's my js code</p>
  
  <pre><code> var deferred = $q.defer();
  
      $http.post('http://localhost:3094/api/Country/GetSelectionCount/' ,
          {id:selection})
          .success(function (data, status, headers, config) {
              deferred.resolve(data);
          })
          .error(function (data, status, headers, config) {
              deferred.reject(data);
          });
  
      return deferred.promise;
  </code></pre>
  
  <p>And server code </p>
  
  <pre><code> [AcceptVerbs("GET")]
      [ActionName("GetSelectionCount")]
      public IHttpActionResult GetSelectionCount(string id)
      {
          if (String.IsNullOrWhiteSpace(id))
              return NotFound();
  
          var result= (from m in db.Products
                       where m.ProductName.Contains(id)
                       select m).Count();
  
          return Ok(result);
      }
  </code></pre>