Ejemplo n.º 1
0
        public async Task Handle(Commands.ChangeEmail command, IMessageHandlerContext ctx)
        {
            var user = await _uow.For <User>().Get(command.CurrentUserId);

            user.ChangeEmail(command.Email);
        }
Ejemplo n.º 2
0
        public void Handle(Commands.ChangeEmail command)
        {
            var user = _uow.R <User>().Get(command.UserId);

            user.ChangeEmail(command.Email);
        }