I'm having problem with MVC 3 routing. I have this function in the Global.asax:
routes.MapRoute("Invitations",
"api/invitations",
new { controller = "Invitations", action = "Invitation" });
And i have a Controller:
public class InvitationsController : Controller
{
[HttpPut]
public JsonResult Invitation(InvitationResponse invitationResponse)
{
//code
}
}
The problem is that i'm get the error NotFound or The resource cannot be found
. Can anyone see the problem?
EDIT: The URL im using is "http://localhost:6055/API/Invitations"