public ActionResult ChangePwd() { var dto = this.Request <ChangePwdInputDto>("dto"); var rlt = false; try { var command = new ChangePwdCommand(dto.ID, 1, dto.pwd, dto.oldPwd); CommandBus.Instance.Send(command); rlt = command.Result.Status; } catch (Exception ex) { return(new ActionResult(false, null, null, ex.Message)); } return(new ActionResult(true, rlt, null, null)); }
public void ChangePwd(ChangePwdCommand command) { _commandBus.Send(command); }