public ServiceResult <bool> CheckAnswer(Question question) { try { var answerChecked = questionRepository.CheckAnswer(question); if (answerChecked.Success) { return(ServiceResult <bool> .SuccessFunc()); } else { return(ServiceResult <bool> .ErrorFunc()); } } catch (Exception ex) { Debug.WriteLine(ex.Message); return(ServiceResult <bool> .ErrorFunc()); } }