Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- partQuery = db.Participants
- .Where(w => w.Id == term.Id)
- .Select(s => new ReferenceSearchListItem { ItemId = s.Id, Aka = s.Aka,
- Name = s.Name, ReferenceType = "Participant",
- ParentItemId = null, ParentItemName = null });
- partVarQuery = db.ParticipantVariations
- .Where(w => w.Id == term.Id)
- .Select(s => new ReferenceSearchListItem { ItemId = s.Id, Aka = "",
- Name = s.Name, ReferenceType = "Participant Variation",
- ParentItemId = s.Participants.FirstOrDefault().Id, ParentItemName = s.Participants.FirstOrDefault().Name })
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement