public async Task <int> AddExamAsync(ExamAddDTO examAddDTO) { var exam = _mapper.Map <Exam>(examAddDTO); await _repository.AddExamAsync(exam); return(exam.Id); }
public async Task <int> AddExamAsync(ExamsDTO examsDTO) { var examToCreate = _mapper.Map <Exam>(examsDTO); await _repository.AddExamAsync(examToCreate); return(examToCreate.Id); }