protected virtual IContactMechStateDeleted Map(IDeleteContactMech c) { var stateEventId = new ContactMechEventId(c.ContactMechId, c.Version); IContactMechStateDeleted e = NewContactMechStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void Delete(IDeleteContactMech c) { IContactMechStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeleteContactMech c) { Update(c, ar => ar.Delete(c)); }
void IContactMechApplicationService.When(IDeleteContactMech c) { this.When((DeleteContactMechDto)c); }