protected virtual IPicklistStateDeleted Map(IDeletePicklist c) { var stateEventId = new PicklistEventId(c.PicklistId, c.Version); IPicklistStateDeleted e = NewPicklistStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
void IPicklistApplicationService.When(IDeletePicklist c) { this.When((DeletePicklistDto)c); }
public virtual void When(IDeletePicklist c) { Update(c, ar => ar.Delete(c)); }
public virtual void Delete(IDeletePicklist c) { IPicklistStateDeleted e = Map(c); Apply(e); }