예제 #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));
        }
예제 #2
0
 public void ChangePwd(ChangePwdCommand command)
 {
     _commandBus.Send(command);
 }