Example #1
0
        public ExecResult AddLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity)
        {
            HttpClientHelper clientHelper = new HttpClientHelper();
            ExecResult       execResult   = clientHelper.PostAuth <ExecResult, LoginErrorLogEntity>(GetAPIUrl(APIConstant.ADDLOGINERRORLOG), loginErrorLogEntity);

            return(execResult);
        }
Example #2
0
        public ExecResult AddLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity)
        {
            ExecResult result = new ExecResult();

            try
            {
                ILoginService loginService = ServiceContainer.Instance.Container.Resolve <ILoginService>();
                bool          flag         = loginService.AddLoginErrorLog(loginErrorLogEntity);
                if (flag)
                {
                    result.result = EnumJsonResult.success.ToString();
                    result.msg    = "成功";
                }
                else
                {
                    result.result = EnumJsonResult.failure.ToString();
                    result.msg    = "操作失败,请确认登录信息是否正确";
                }
            }
            catch (Exception ex)
            {
                result.result = EnumJsonResult.error.ToString();
                result.msg    = "记录登录错误日志信息时出现异常:" + ex.Message;
            }
            return(result);
        }
Example #3
0
 /// <summary>
 /// 更新存储媒介中的实体数据
 /// </summary>
 /// <param name="loginErrorLogEntity">LoginErrorLogEntity实体对象</param>
 /// <returns>true:更新成功 false:更新失败</returns>
 public bool UpdateLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity)
 {
     return(LoginDataAccess.Instance.UpdateLoginErrorLog(loginErrorLogEntity));
 }
Example #4
0
 /// <summary>
 /// 将实体数据存入存储媒介(持久化一个对象)
 /// </summary>
 /// <param name="authorInfo">AuthorInfoEntity实体对象</param>
 /// <returns>true:存储成功 false:存储失败</returns>
 public bool AddLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity)
 {
     return(LoginDataAccess.Instance.AddLoginErrorLog(loginErrorLogEntity));
 }
Example #5
0
 public bool UpdateLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity)
 {
     return(LoginBusProvider.UpdateLoginErrorLog(loginErrorLogEntity));
 }
Example #6
0
 public bool AddLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity)
 {
     return(LoginBusProvider.AddLoginErrorLog(loginErrorLogEntity));
 }