Exemple #1
0
        public void Process(NationalSocietyCreated @event)
        {
            var nationalSociety = new NationalSociety()
            {
                Id      = @event.Id,
                Name    = @event.Name,
                Country = @event.Country
            };

            _nationalSocieties.Save(nationalSociety);
        }
Exemple #2
0
        public void Process(NationalSocietyCreated @event)
        {
            var nationalSociety = new NationalSociety()
            {
                Id      = @event.Id,
                Name    = @event.Name,
                Country = @event.Country,
                TimezoneOffsetFromUtcInMinutes = @event.TimezoneOffsetFromUtcInMinutes
            };

            _nationalSocieties.Save(nationalSociety);
        }
 public void Save(NationalSociety nationalSociety)
 {
     _collection.InsertOne(nationalSociety);
 }