private bool ShouldValidate(AuthorizationContext Context)
{
return (string.Compare(Context.HttpContext.Request.HttpMethod, System.Net.WebRequestMethods.Http.Post, StringComparison.OrdinalIgnoreCase) == 0
&& Context.ActionDescriptor.Attributes<ValidateAntiForgeryTokenAttribute>().Length == 0
&& Context.ActionDescriptor.Attributes<ByPassCRSF>().Length == 0);
}