/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="PhoneDTO"/> converted from <see cref="Phone"/>.</param> static partial void OnDTO(this Experience entity, ExperienceDTO dto) { if (entity != null && entity.Business != null) { dto.Business = BusinessAssembler.ToDTO(entity.Business); } }
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="JobDTO"/> converted from <see cref="Job"/>.</param> static partial void OnDTO(this Job entity, JobDTO dto) { if (entity.JobApplications != null && entity.JobApplications.Count > 0) { dto.JobApplications = JobApplicationAssembler.ToDTOs(entity.JobApplications); } if (entity.Business != null) { dto.Business = BusinessAssembler.ToDTO(entity.Business); } }