when i call delete method in angularjs as below, then it doesn't work.

```
$http.post('/api/Student/delete/'+$scope.delrollno)
                .then(function (response) {   .....

```

in controller I have method as below.

```
public void Delete(int id)
    { .............
    }

```

in console it gives error, 405 (Method Not Allowed), why it is not going into controller delete method?