public async Task Handle(Commands.ChangeEmail command, IMessageHandlerContext ctx) { var user = await _uow.For <User>().Get(command.CurrentUserId); user.ChangeEmail(command.Email); }
public void Handle(Commands.ChangeEmail command) { var user = _uow.R <User>().Get(command.UserId); user.ChangeEmail(command.Email); }