private RouteAction MatchResourceNodeRequest(HttpMethod httpMethod, ResourceType resourceType)
{
if (!NameStartsWith(httpMethod))
return null;
switch (httpMethod)
{
case HttpMethod.Delete:
return MatchMethodTakingExistingResource(resourceType);
case HttpMethod.Patch:
return MatchMethodTakingPatchedExistingResource(resourceType);
case HttpMethod.Get:
return MatchMethodTakingResourceId(resourceType);
case HttpMethod.Post:
return MatchMethodTakingExistingResourceAndForm(resourceType);
}
return null;
}
}