private bool ProcessErrorCode(int code) { if (code == 0) { return(true); } SendOutError(OMErrors.OMgetErrorDesc(code)); return(false); }
private void SessionHolderOnPasswordChange(PasswordChangeInfo info) { try { SendOutMessage(new ChangePasswordMessage { Error = info.RpCode == 0 ? null : new InvalidOperationException(OMErrors.OMgetErrorDesc(info.RpCode)) }); } catch (Exception ex) { SendOutError(ex); } }