protected virtual IAttributeSetStateDeleted Map(IDeleteAttributeSet c) { var stateEventId = new AttributeSetStateEventId(c.AttributeSetId, c.Version); IAttributeSetStateDeleted e = NewAttributeSetStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }
protected virtual IAttributeSetStateDeleted Map(IDeleteAttributeSet c) { var stateEventId = new AttributeSetEventId(c.AttributeSetId, c.Version); IAttributeSetStateDeleted e = NewAttributeSetStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void Delete(IDeleteAttributeSet c) { IAttributeSetStateDeleted e = Map(c); Apply(e); }
public virtual void When(IDeleteAttributeSet c) { Update(c, ar => ar.Delete(c)); }
void IAttributeSetApplicationService.When(IDeleteAttributeSet c) { this.When((DeleteAttributeSetDto)c); }