Exemplo n.º 1
0
        public void Handle(Commands.Deactivate command)
        {
            var currency = _uow.R <Currency>().Get(command.CurrencyId);
            var user     = _uow.R <Authentication.Users.User>().Get(command.UserId);

            currency.Deactivate(user);
        }
Exemplo n.º 2
0
        public async Task Handle(Commands.Deactivate command, IHandleContext ctx)
        {
            var currency = await _uow.For <Currency>().Get(command.CurrencyId);

            var user = await _uow.For <Authentication.Users.User>().Get(command.UserId);

            currency.Deactivate(user);
        }