public static OperatorDTO GetCurrentOperator()
        {
            var currentUser = AuthorizeManager.GetCurrentUserInfo();

            if (currentUser != null)
            {
                return(new OperatorDTO()
                {
                    UserId = currentUser.UserId,
                    OperatorName = currentUser.UserName
                });
            }

            return(FakeOperator);
        }
 protected UserForAuthorize GetCurrentUser()
 {
     try
     {
         _CurrentUser = AuthorizeManager.GetCurrentUserInfo();
     }
     catch (ArgumentException)
     {
     }
     catch (DataNotFoundException)
     {
     }
     catch (AuthorizeTokenNotFoundException)
     {
     }
     return(_CurrentUser);
 }