public void Handle(KillPartyAdded e) { var kill = _repository.Get <KillDto>(e.Id); kill.InvolvedParties.Add(new KillInvolvedPartyDto(e.AllianceId, e.CorpId, e.PilotId, e.ShipId, e.WeaponId, e.DamageDone, e.SecurityStatus, e.DamageDone)); _repository.Save(kill); }
public void Handle(PilotCorporationChanged e) { var dto = _repository.Get <PilotDto>(e.Id); dto.CorporationId = e.CorporationId; dto.Timestamp = e.Timestamp; _repository.Save(dto); }
public void Handle(TestEntityNameChangedEvent e) { var r = _repository.Get <TestEntityReport>(e.Id); r.Name = e.Name; _repository.Save(r); }
public void Handle(CorporationAllianceChanged e) { var dto = _repository.Get <CorporationDto>(e.Id); dto.AllianceId = e.AllianceId; }