Example #1
0
 public static List <EdFiEducationOrganizationCategory> Resolve(School source)
 {
     return(GetNewEducationCategory(source.EducationOrganizationCategory));
 }
Example #2
0
 public static List <EdFiSchoolGradeLevel> Resolve(School source)
 {
     return(source.GradeLevels?.Select(x => new EdFiSchoolGradeLevel(x)).ToList());
 }
Example #3
0
 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));
 }
Example #4
0
 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());
 }