public bool Execute(AccountType type, string accountName) { return accounts.Any(a => a.Type == type && a.Name == accountName); }
public bool AccountExists(AccountType type, string name) { AccountExistsQuery query = new AccountExistsQuery(dbContext.Accounts); return query.Execute(type, name); }