protected virtual bool IsRightCredentials(GetTokenByUserCredentialsCommand command, AccountStorageModel userAccount)
        {
            if (userAccount == null)
            {
                return false;
            }

            return _passwordHashManager.IsCorrectPassword(command.Password, userAccount.HashedPassword);
        }
        protected virtual SessionStorageModel GetNewSession(AccountStorageModel userAccount)
        {
            var newToken = Guid.NewGuid();
            var startTime = DateTime.Now;

            var newSession = new SessionStorageModel
            {
                AccountId = userAccount.Id,
                StartTime = startTime,
                Token = newToken
            };

            return newSession;
        }