public void Handle(SiteCreated e) { _sites.Save(s => { s.Id = e.Id; s.SiteId = e.Id; s.Name = e.Name; s.Capacity = e.Capacity; s.Version = 1; }); }
public void On(SiteCreated e) { Id = e.Id; Name = e.Name; Capacity = e.Capacity; }
public void Handle(SiteCreated e) { CreateRevision(e.Id); }