public ResponseModel <string> UpdatePassword(BCUpdPwdDTO bcupdPwdDTO) { var result = new ResponseModel <string>(); result.error_code = Result.SUCCESS; result.message = ""; if (bcupdPwdDTO.account_id <= 0 || string.IsNullOrWhiteSpace(bcupdPwdDTO.account) || string.IsNullOrWhiteSpace(bcupdPwdDTO.oldPassword) || string.IsNullOrWhiteSpace(bcupdPwdDTO.newPassword)) { result.error_code = Result.ERROR; result.message = "参数有误"; result.data = ""; } else { string msg = string.Empty; if (!_sysAccountService.UpdatePassWord(bcupdPwdDTO.account_id, bcupdPwdDTO.account, bcupdPwdDTO.oldPassword, bcupdPwdDTO.newPassword, out msg)) { result.message = msg; result.data = ""; result.error_code = Result.ERROR; } } return(result); }