Default implementation of T:EPiServer.AccessDeniedDelegate
 public static void AccessDenied(object sender)
 {
     if (FormsSettings.IsFormsAuthentication)
     {
         AccessDeniedHandler.FormLogonAccessDenied((AuthorizationContext)sender);
     }
     else
     {
         AccessDeniedHandler.BrowserLogonAccessDenied();
     }
 }
 /// <summary>
 /// Creates the access denied delegate respect to site authentication mode.
 ///             If the site configured with Forms then creates FormLogonAccessDenied otherwise BrowserLogonAccessDenied
 ///
 /// </summary>
 /// <param name="filterContext"></param>
 /// <returns/>
 public static AccessDeniedDelegate CreateAccessDeniedDelegate(AuthorizationContext filterContext)
 {
     return(new AccessDeniedDelegate(d => AccessDeniedHandler.AccessDenied(filterContext)));
 }