Beispiel #1
0
        public bool HasAccountStatusFlag(AccountStatusFlags flag)
        {
            var account = GetCurrentLoggedInAccount();

            //TODO THOW ERROR???
            if (account == null)
            {
                return(false);
            }

            return(BitwiseUtils.HasFlag(account.StatusFlags, ( int )flag));
        }
Beispiel #2
0
        public void RemoveAccountStausFlag(AccountStatusFlags flag)
        {
            var account = GetCurrentLoggedInAccount();

            //TODO THOW ERROR???
            if (account == null)
            {
                return;
            }

            account.StatusFlags = BitwiseUtils.RemoveFlag(account.StatusFlags, ( int )flag);

            Context.LogValidationFailSaveChanges(RootRepository.SecurityRepository.AuditLogUserId);
        }