And this is why I wasted 2hrs yesterday

3    08 Nov 2015 16:21 by u/Karmadilla

When I made request delete I got back 405 Not allowed.

[HttpGet]
[Authorize]
[Route("{id:int}", Name = "GetLead")]
public async Task<IHttpActionResult> Get(int id)
[HttpDelete]
[Authorize]
[Route("id:int")]
public async Task<IHttpActionResult> Delete(int id)

I fixed it, but can you spot the problem above?

0 comments

No comments archived.