Пример #1
0
        public ApiCodeSelectByIdReturnModel GetQuestions(int questionTyeId)
        {
            var codeCategoryId = (int)Enums.CodeCategoryEnum.SecurityQuestions;


            ApiCodeSelectByIdReturnModel _result;

            using (var db = new DBAMPContext())
            {
                try
                {
                    _result = db.ApiCodeSelectById(codeCategoryId, questionTyeId);
                }
                catch (System.Exception ex)
                {
                    string sqlParam   = "ApiCodeSelectById(" + codeCategoryId + "," + questionTyeId + ")";
                    string methodName = "JCRAPI/Business/PasswordServices/GetQuestions";
                    exceptionLog.ExceptionLogInsert(ex.Message.ToString(), "", methodName, null, null, sqlParam, string.Empty);
                    return(null);
                }
            }
            return(_result);
        }