I am trying to pass an entire object to a delete method of my API and the execution never gets to it.
Client (angular)
$http({
                      method: 'DELETE',
                      url: framewidth + "codebook/DeleteSection/",
                      data: $scope.codesection
                  })
Server (Web API 2)
[HttpDelete]
    public int DeleteSection(Domain.Code.CodeSection section)
    {
     //   repo.Delete(Mapper.Map<EF.Code.CodeSection>(section));
        return (section.Id);
    }
The EXACT same set up but with POST works for the method that does the Create operation. Is it nor possible to pass entire object with a DELETE verb request?
Thanks!
 
     
    