protected virtual IMovementTypeStateCreated Map(ICreateMovementType c) { var stateEventId = new MovementTypeEventId(c.MovementTypeId, c.Version); IMovementTypeStateCreated e = NewMovementTypeStateCreated(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); }
void IMovementTypeApplicationService.When(ICreateMovementType c) { this.When((CreateMovementTypeDto)c); }
public virtual void Create(ICreateMovementType c) { IMovementTypeStateCreated e = Map(c); Apply(e); }
public virtual void When(ICreateMovementType c) { Update(c, ar => ar.Create(c)); }