AIMS_BD_IATI.WebAPI.Controllers.IATIImportController.GetMatchedProjects C# (CSharp) 메소드

GetMatchedProjects() 개인적인 정적인 메소드

private static GetMatchedProjects ( List relevantActivies, List AimsProjects ) : IEnumerable
relevantActivies List
AimsProjects List
리턴 IEnumerable
        private static IEnumerable<iatiactivity> GetMatchedProjects(List<iatiactivity> relevantActivies, List<iatiactivity> AimsProjects)
        {
            Sessions.CurrentStage = Stage.MatchProjects;

            var q = from i in relevantActivies
                    let isHierarchy2 = i.hierarchy == 2
                    from a in AimsProjects.Where(k => i.OriginalIatiIdentifier==k.OriginalIatiIdentifier)
                    orderby i.IatiIdentifier

                    select i;

            return q;
        }