public IEnumerable <Project> Search(string request, Paging paging, DescriptionKind isExtended) { var elasticProjects = elastic.SearchItemsProject(request, paging, isExtended); var projectEntities = GetEntityProjects(elasticProjects); var e1 = projectEntities.GetEnumerator(); var e2 = elasticProjects.GetEnumerator(); while (e1.MoveNext() && e2.MoveNext()) { yield return(GetMergeProject(e1.Current, e2.Current)); } }