public void Process(NationalSocietyCreated @event) { var nationalSociety = new NationalSociety() { Name = @event.Name, Id = @event.Id }; _nationalSocieties.Save(nationalSociety); }
public void Process(NationalSocietyCreated @event) { var nationalSociety = new NationalSociety() { Id = @event.Id, Name = @event.Name, Country = @event.Country }; _nationalSocieties.Save(nationalSociety); }
public void Save(NationalSociety nationalSociety) { _collection.InsertOne(nationalSociety); }