コード例 #1
0
        private BaseActionResult AddUserCert(UserCertModel model)
        {
            BaseActionResult result = new BaseActionResult();

            try
            {
                if (userService.IsExistUserCert(model.UserGuid, model.CertInfo))
                {
                    result.recode = 1;
                }
                else
                {
                    userService.AddUserCert(model);
                }

                result.Result = true;
            }
            catch (Exception ex)
            {
                logger.Error((long)ModuleEnum.Oam_DA, ModuleInstanceName.Oam, 1, ex.Message, Application.StartupPath.ToString(),
                             (new System.Diagnostics.StackFrame(0, true)).GetFileName(),
                             (new System.Diagnostics.StackFrame(0, true)).GetFileLineNumber());

                result.Result        = false;
                result.ReturnMessage = ex.Message;
            }

            return(result);
        }
コード例 #2
0
 public void AddUserCert(UserCertModel model)
 {
     userDAO.AddUserCert(model);
 }