Exemple #1
0
        public async Task <AttestationDto> Create(AttestationCreateDto entity)
        {
            var entityModel = entity.Adapt <Attestation>();

            var newEntity = await this.attestationRepository.Create(entityModel);

            await this.AddRelatedEntities(newEntity, addExamInfos : true);

            return(this.AddScoreStatistics(newEntity.Adapt <AttestationDto>()));
        }
Exemple #2
0
 public async Task <AttestationDto> Create(AttestationCreateDto attestation)
 {
     return(await this.attestationService.Create(attestation));
 }