public IReadOnlyCollection <User> GetUsers(string customPropertyName, string customPropertyValue, AccountType accountType) { var query = new UsersByCustomPropertyAndAccountTypeQuery(dbContext.Users); IQueryable <Model.User> users = query.Execute(customPropertyName, customPropertyValue, (Model.AccountType)accountType); return(new UserMapper().Map(users).ToList()); }
public IReadOnlyCollection<User> GetUsers(string customPropertyName, string customPropertyValue, AccountType accountType) { var query = new UsersByCustomPropertyAndAccountTypeQuery(dbContext.Users); IQueryable<Model.User> users = query.Execute(customPropertyName, customPropertyValue, (Model.AccountType)accountType); return new UserMapper().Map(users).ToList(); }