 <p>I prefer calling like this - </p> <pre><code>this.getyear = function (bookId) { var url = "Dashboard/GetyearId", var data = [12,10]; //A json object //or var data = JSON.stringify([10,14]) //in your case, but better pass and receive objects return $http.post(url, data); } </code></pre>