I have the following method signature in my WebAPI controller:
[System.Web.Http.Route("api/paging/reports/{ProjectID?}/{PageNumber?}")] public ReportPageData ReportPage(Guid? ProjectID, int? PageNumber)
When I try to access it through IE, curl, wget, or any other program that can make GET requests, it returns a 405 error immediately (without running the code in the method). The following method in the same controller works fine:
[System.Web.Http.Route("api/getreports/{Project?}")] public IEnumerable<dynamic> GetAllReports(Guid? Project)
What would make this happen?