Example #1
0
        /// <summary>
        /// Remove question and evrything associated with
        /// </summary>
        /// <param name="questionId"></param>
        /// <returns></returns>
        public Errors RemoveQuestion(int questionId)
        {
            try
            {
                if (!_dbManager.isExistQuestionId(questionId))
                {
                    return(Errors.NOT_EXIST_QUESTION_ID);
                }

                _dbManager.RemoveQuestion(questionId);
                return(Errors.OK);
            }
            catch (Exception ex)
            {
                _logger.Error(ex.Message);
                return(Errors.DATA_BASE_ERROR);
            }
        }