protected virtual IPartyRoleStateDeleted Map(IDeletePartyRole c) { var stateEventId = new PartyRoleEventId(c.PartyRoleId, c.Version); IPartyRoleStateDeleted e = NewPartyRoleStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void Delete(IDeletePartyRole c) { IPartyRoleStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeletePartyRole c) { Update(c, ar => ar.Delete(c)); }
void IPartyRoleApplicationService.When(IDeletePartyRole c) { this.When((DeletePartyRoleDto)c); }