예제 #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);
        }