Пример #1
0
        //bool ISurveyService.CreateNewQuestionGroup(QuestionGroup group)
        //{
        //    throw new NotImplementedException();
        //}

        int ISurveyService.CreateNewQuestionGroup(QuestionGroup group)
        {
            try
            {
                return(_repository.CreateQuestionGroup(group));
            }
            catch (SqlException sqlEx)
            {
                throw new Exception(EnumUtils.GetStringValue(ErrorMessage.UserDefinedMessage), sqlEx);
            }
            catch (Exception ex)
            {
                throw new Exception(EnumUtils.GetStringValue(ErrorMessage.UserDefinedMessage), ex);
            }
        }