Esempio n. 1
0
        public ApiSelectSecurityQuestionsByIdReturnModel GetSecurityQuestionsById(int?questionTyeId)
        {
            ApiSelectSecurityQuestionsByIdReturnModel _result;

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