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);
        }
Esempio 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);
        }