Inheritance: Prototype.Platform.Domain.Event
 public void Handle(SubjectUpdated e)
 {
     _subjects.Update(e.Id, s =>
     {
         s.SubjectId = e.Id;
         s.Name = e.Name;
     });
 }
示例#2
0
        public void Handle(SubjectUpdated e)
        {
            _subjects.Update(e.Id, s =>
            {
                s.DateOfBirth = e.DateOfBirth;
                s.Level = e.Level;
                s.UpdateName(e.Name, e.Initials);
                s.Version++;

                if (string.Equals(s.SiteId, e.SiteId) == false)
                {
                    s.SiteId = e.SiteId;
                    s.SiteName = GetSiteName(e.SiteId);
                }
            });
        }
 public void Handle(SubjectUpdated e)
 {
     CreateRevision(e.Id);
 }
示例#4
0
 public void On(SubjectUpdated e)
 {
     Level = e.Level;
     DateOfBirth = e.DateOfBirth;
 }