예제 #1
0
        public override void Handle(IDemographicUpdated command)
        {
            var existingDemographic = _demographicsRepository.CheckDemographicByExternalRef(command.ExternalRef);

            existingDemographic.Update(command.Name, command.ShortName, command.DisplayOrder, command.Gameplan);
            _demographicsRepository.Update(existingDemographic);
            _demographicsRepository.SaveChanges();
        }