protected virtual IUomTypeStateCreated Map(ICreateUomType c) { var stateEventId = new UomTypeEventId(c.UomTypeId, c.Version); IUomTypeStateCreated e = NewUomTypeStateCreated(stateEventId); e.ParentTypeId = c.ParentTypeId; e.HasTable = c.HasTable; 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 IUomTypeApplicationService.When(ICreateUomType c) { this.When((CreateUomTypeDto)c); }
public virtual void Create(ICreateUomType c) { IUomTypeStateCreated e = Map(c); Apply(e); }
public virtual void When(ICreateUomType c) { Update(c, ar => ar.Create(c)); }