Created
January 17, 2018 14:27
-
-
Save jbogard/a08e8301dad006c026335d4176453067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public bool Matches(RouteData routeData, string httpMethod) => | |
HttpMethods.IsGet(httpMethod) | |
&& string.Equals((string)routeData.Values["controller"], | |
"orders", StringComparison.OrdinalIgnoreCase) | |
&& routeData.Values.ContainsKey("id"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment