public void OnAuthorization(AuthorizationContext filterContext)
 {
     if (!GetCurrentUser.CheckCurrentLogin())
     {
         filterContext.Result = new RedirectResult("/Login");
     }
 }
        public void OnAuthorization(AuthorizationContext filterContext)
        {
            if (!GetCurrentUser.CheckCurrentLogin())
            {
                filterContext.Result = new RedirectResult("/Login");
            }

            //if (SecureDongleProvider.CheckHardKey() == false)
            //{
            //    filterContext.Result = new RedirectResult("/Login");
            //}
        }