public async Task <int> Create(CreateQuizRequestModel model) { if (_quizRepo.CheckIfQuizExisting(model.Name)) { throw new Exception("Duplicated Quiz Name"); } return(await _quizRepo.Create(_mapper.Map <Quiz>(model))); }