Example #1
0
 public void On(PersonDataChanged @event)
 {
     PersonId     = Guid.Parse(@event.PersonId);
     Name         = @event.Name;
     Family       = @event.Family;
     MotherName   = @event.MotherName;
     FatherName   = @event.FatherName;
     NationalCode = @event.NationalCode;
     BirthDate    = @event.BirthDate;
 }
Example #2
0
        public void Changed(string personId, string name, string family, string nationalCode, string motherName, string fatherName, string birthDate)
        {
            var createEvent = new PersonDataChanged(personId, name, family, motherName, fatherName, birthDate, nationalCode);

            ApplyEvent(createEvent);
        }