public static List <EdFiEducationOrganizationCategory> Resolve(School source) { return(GetNewEducationCategory(source.EducationOrganizationCategory)); }
public static List <EdFiSchoolGradeLevel> Resolve(School source) { return(source.GradeLevels?.Select(x => new EdFiSchoolGradeLevel(x)).ToList()); }
public List <EdFiEducationOrganizationCategory> Resolve(School source, EdFiSchool destination, List <EdFiEducationOrganizationCategory> destMember, ResolutionContext context) { destMember?.Clear(); // by default, automapper combines the source list with the destination list. we want to replace the destination list instead return(EducationOrganizationCategoryResolver.GetNewEducationCategory(source.EducationOrganizationCategory)); }
public List <EdFiSchoolGradeLevel> Resolve(School source, EdFiSchool destination, List <EdFiSchoolGradeLevel> destMember, ResolutionContext context) { destMember?.Clear(); // by default, automapper combines the source list with the destination list. we want to replace the destination list instead return(source.GradeLevels?.Select(x => new EdFiSchoolGradeLevel(x)).ToList()); }