/// <inheritdoc/>
        internal static string SelectActionImpl(IWebApiActionMap actionMap)
        {
            if (actionMap.Contains(UnmappedRequestActionName))
            {
                return(UnmappedRequestActionName);
            }

            return(null);
        }
Esempio n. 2
0
        public static string FindMatchingAction(this IWebApiActionMap actionMap, params string[] targetActionNames)
        {
            foreach (string targetActionName in targetActionNames)
            {
                if (actionMap.Contains(targetActionName))
                {
                    return(targetActionName);
                }
            }

            return(null);
        }