public async Task <Result <ExamsResult> > HandleAsync(GetExamsByTypeAndCategoryQuery query) { var exams = await _examsRepository.GetExamsByTypeAndCategoryAsync(query.Type, query.Category); var result = _mapper.Map <IEnumerable <ExamsResult.Exam> >(exams); return(Result.Success(new ExamsResult(result))); }