protected virtual ILocatorTypeStateDeleted Map(IDeleteLocatorType c) { var stateEventId = new LocatorTypeEventId(c.LocatorTypeId, c.Version); ILocatorTypeStateDeleted e = NewLocatorTypeStateDeleted(stateEventId); e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }
public virtual void Delete(IDeleteLocatorType c) { ILocatorTypeStateDeleted e = Map(c); Apply(e); }
void ILocatorTypeApplicationService.When(IDeleteLocatorType c) { this.When((DeleteLocatorTypeDto)c); }
public virtual void When(IDeleteLocatorType c) { Update(c, ar => ar.Delete(c)); }