public ExecResult AddLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity) { HttpClientHelper clientHelper = new HttpClientHelper(); ExecResult execResult = clientHelper.PostAuth <ExecResult, LoginErrorLogEntity>(GetAPIUrl(APIConstant.ADDLOGINERRORLOG), loginErrorLogEntity); return(execResult); }
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); }
/// <summary> /// 更新存储媒介中的实体数据 /// </summary> /// <param name="loginErrorLogEntity">LoginErrorLogEntity实体对象</param> /// <returns>true:更新成功 false:更新失败</returns> public bool UpdateLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity) { return(LoginDataAccess.Instance.UpdateLoginErrorLog(loginErrorLogEntity)); }
/// <summary> /// 将实体数据存入存储媒介(持久化一个对象) /// </summary> /// <param name="authorInfo">AuthorInfoEntity实体对象</param> /// <returns>true:存储成功 false:存储失败</returns> public bool AddLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity) { return(LoginDataAccess.Instance.AddLoginErrorLog(loginErrorLogEntity)); }
public bool UpdateLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity) { return(LoginBusProvider.UpdateLoginErrorLog(loginErrorLogEntity)); }
public bool AddLoginErrorLog(LoginErrorLogEntity loginErrorLogEntity) { return(LoginBusProvider.AddLoginErrorLog(loginErrorLogEntity)); }