예제 #1
0
 public TruncatedUniversity Map(University university)
 {
     return new TruncatedUniversity()
     {
         Id = university.Id,
         Name = university.Name
     };
 }
 public UniversityReturnModel Map(University university)
 {
     return new UniversityReturnModel
     {
         Id = university.Id,
         Name = university.Name,
         Faculties = university.Faculties.Select(f => _truncatedFacultyMapper.Map(f)).ToList()
     };
 }