Пример #1
0
 private IDictionary <Guid, DateTime> GetLastUpdatedTimes(IEnumerable <Guid> candidateIds, ProfessionalViewCollection <EmployerMemberView> views)
 {
     return((from i in candidateIds
             let view = views[i]
                        select new
     {
         id = i,
         lastUpdatedTime = _memberStatusQuery.GetLastUpdatedTime(view, view, view.Resume)
     }).ToDictionary(x => x.id, x => x.lastUpdatedTime));
 }
Пример #2
0
        private static IList <Guid> GetFilteredCandidates(IEnumerable <Guid> candidateIds, ProfessionalViewCollection <EmployerMemberView> views)
        {
            // Need to filter out candidates who should not be shown.

            return((from i in candidateIds
                    let v = views[i]
                            where v.IsEnabled &&
                            v.VisibilitySettings.Professional.EmploymentVisibility.IsFlagSet(ProfessionalVisibility.Resume)
                            select i).ToList());
        }