/// <inheritdoc/> internal static string SelectActionImpl(IWebApiActionMap actionMap) { if (actionMap.Contains(UnmappedRequestActionName)) { return(UnmappedRequestActionName); } return(null); }
public static string FindMatchingAction(this IWebApiActionMap actionMap, params string[] targetActionNames) { foreach (string targetActionName in targetActionNames) { if (actionMap.Contains(targetActionName)) { return(targetActionName); } } return(null); }