Exemple #1
0
        public static bool IsHttpMethod(
            this HttpRequestBase request,
            string httpMethod,
            bool allowOverride
            )
        {
            string requestHttpMethod = allowOverride
                ? request.GetHttpMethodOverride()
                : request.HttpMethod;

            return(String.Equals(requestHttpMethod, httpMethod, StringComparison.OrdinalIgnoreCase));
        }