Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public virtual void Delete(IDeletePartyRole c)
        {
            IPartyRoleStateDeleted e = Map(c);

            Apply(e);
        }
Esempio n. 3
0
 public virtual void When(IDeletePartyRole c)
 {
     Update(c, ar => ar.Delete(c));
 }
 void IPartyRoleApplicationService.When(IDeletePartyRole c)
 {
     this.When((DeletePartyRoleDto)c);
 }