public async Task <AttestationDto> Update(AttestationUpdateDto entity) { var entityModel = entity.Adapt <Attestation>(); var changedEntity = await this.attestationRepository.Update(entityModel); await this.AddRelatedEntities(changedEntity, addExamInfos : true); return(this.AddScoreStatistics(changedEntity.Adapt <AttestationDto>())); }
public async Task <AttestationDto> Update(AttestationUpdateDto attestation) { return(await this.attestationService.Update(attestation)); }