/// <summary> /// Processes the single aggregate. /// </summary> /// <param name="dto">The dto to process.</param> /// <param name="aggregateNode">The aggregate node.</param> /// <returns>A <see cref="System.Boolean"/></returns> protected override bool ProcessSingleAggregate(GpraFollowUpDto dto, GpraFollowUp aggregateNode) { var propertyMappingResult = MappingProperties(dto, aggregateNode); _mappingResult &= propertyMappingResult; return(_mappingResult); }
private bool MappingProperties(GpraFollowUpDto gpraFollowUpDto, GpraFollowUp gpraFollowUp) { // Map any Lookup Fields first var gpraFollowUpStatus = _mappingHelper.MapLookupField <GpraFollowUpStatus> (gpraFollowUpDto.GpraFollowUpStatus); AggregateRoot.ReviseGpraFollowUp( new GpraFollowUpSection( gpraFollowUpStatus, gpraFollowUpDto.GpraFollowUpStatusOtherDescription, gpraFollowUpDto.PatientReceivingServicesIndicator)); gpraFollowUpDto.Key = AggregateRoot.GpraFollowUp.Key; return(true); }