// Search by Type & Name public IEnumerable <Enterprise> GetByTypeAndName(EnterpriceType type, string subName) { return(this.GetByType(type).Intersect <Enterprise>(this.GetByName(subName))); }
// Search by Type public IEnumerable <Enterprise> GetByType(EnterpriceType type) { return(Enterprises.Where(ent => ent.Type == type)); }