protected virtual ILocatorTypeStateCreated Map(ICreateLocatorType c) { var stateEventId = new LocatorTypeEventId(c.LocatorTypeId, c.Version); ILocatorTypeStateCreated e = NewLocatorTypeStateCreated(stateEventId); e.Description = c.Description; e.Active = c.Active; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); var version = c.Version; return(e); }
public virtual void Create(ICreateLocatorType c) { ILocatorTypeStateCreated e = Map(c); Apply(e); }
void ILocatorTypeApplicationService.When(ICreateLocatorType c) { this.When((CreateLocatorTypeDto)c); }
public virtual void When(ICreateLocatorType c) { Update(c, ar => ar.Create(c)); }