/// <summary> /// Check to see if there are any related Applicants, and load them if requested /// </summary> public static void CheckExpandApplicants(SqlDataManager sdm, IEnumerable <Interviewer> interviewers, string expandString) { expandString = expandString.SafeToString(); if (String.Equals(expandString, "all", StringComparison.OrdinalIgnoreCase) || expandString.IndexOf("applicants", StringComparison.OrdinalIgnoreCase) >= 0) { var interviewersWhere = CreateInterviewerWhere(interviewers, "OnsiteInterviewer"); var childApplicants = sdm.GetAllApplicants <Applicant>(interviewersWhere) .OrderBy(orderBy => orderBy.Name) ; interviewers.ToList() .ForEach(feInterviewer => feInterviewer.LoadOnsiteInterviewer_Applicants(childApplicants)); } }
/// <summary> /// Check to see if there are any related Applicants, and load them if requested /// </summary> public static void CheckExpandApplicants(SqlDataManager sdm, IEnumerable <Position> positions, string expandString) { expandString = expandString.SafeToString(); if (String.Equals(expandString, "all", StringComparison.OrdinalIgnoreCase) || expandString.IndexOf("applicants", StringComparison.OrdinalIgnoreCase) >= 0) { var positionsWhere = CreatePositionWhere(positions, "Applyingfor"); var childApplicants = sdm.GetAllApplicants <Applicant>(positionsWhere) .OrderBy(orderBy => orderBy.Name) ; positions.ToList() .ForEach(fePosition => fePosition.LoadApplyingfor_Applicants(childApplicants)); } }