public IQueryable<Group> GetByParentGroupId( int? parentGroupId ) { return Queryable().Where( t => ( t.ParentGroupId == parentGroupId || ( parentGroupId == null && t.ParentGroupId == null ) ) ); }