Пример #1
0
        public async Task Handle(Commands.UpdateName command, IMessageHandlerContext ctx)
        {
            var country = await _uow.For <Country>().Get(command.CountryId);

            country.ChangeName(command.Name);
        }
Пример #2
0
        public void Handle(Commands.UpdateName command)
        {
            var country = _uow.R <Country>().Get(command.CountryId);

            country.ChangeName(command.Name);
        }