Execute() public method

public Execute ( string accountName, AccountType accountType ) : User
accountName string
accountType AccountType
return User
        public string GetPassword(string accountName)
        {
            var query = new UserByAccountQuery(dbContext.Users);
            Model.User user = query.Execute(accountName, Model.AccountType.Password);

            if (user == null)
            {
                throw new EntityNotFoundException("Account", accountName);
            }

            Model.Account account = user.GetAccount(Model.AccountType.Password, accountName);
            return account.Password;
        }
 public bool IsExistingUser(string accountName, AccountType accountType)
 {
     var query = new UserByAccountQuery(dbContext.Users);
     return query.Execute(accountName, (Model.AccountType)accountType) != null;
 }
        public User GetUser(string accountName, AccountType accountType)
        {
            var query = new UserByAccountQuery(dbContext.Users);
            var user = query.Execute(accountName, (Model.AccountType)accountType);

            if (user == null)
            {
                throw new EntityNotFoundException("Account", accountName);
            }

            return new UserMapper().Map(user);
        }