public TruncatedFaculty Map(Faculty f) { return new TruncatedFaculty() { Id = f.Id, Name = f.Name }; }
public FacultyReturnModel Map(Faculty faculty) { return new FacultyReturnModel() { Id = faculty.Id, Name = faculty.Name, Specialities = faculty.Specialities.Select(s => _truncatedSpecialityMapper.Map(s)).ToList(), University = _truncatedUniversityMapper.Map(faculty.University), UniversityId = faculty.UniversityId }; }