Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public void ChangePwd(ChangePwdCommand command)
 {
     _commandBus.Send(command);
 }