public async Task <ExamInfoBaseDto> Create(ExamInfoCreateDto examInfo) { var forCreate = examInfo.Adapt <ExamInfo>(); forCreate.Level = this.GetLevel(examInfo.Score); var newExamInfo = await this.examInfoRepository.Create(forCreate); await this.AddRelatedEntities(newExamInfo); return(newExamInfo.Adapt <ExamInfoDto>()); }
public async Task <ExamInfoBaseDto> Create(ExamInfoCreateDto examInfo) { return(await this.examInfoServices.Create(examInfo)); }