public List <Child> GetChildrenById(long cid) { List <Child> children = new List <Child>(); foreach (Entry entry in entriesRepo.FindAll()) { if (entry.Id.Right == cid) { children.Add(childRepo.FindOne(entry.Id.Left)); } } return(children); }