protected virtual IGoodIdentificationTypeStateCreated Map(ICreateGoodIdentificationType c)
        {
            var stateEventId = new GoodIdentificationTypeEventId(c.GoodIdentificationTypeId, c.Version);
            IGoodIdentificationTypeStateCreated e = NewGoodIdentificationTypeStateCreated(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);
        }
 public virtual void When(ICreateGoodIdentificationType c)
 {
     Update(c, ar => ar.Create(c));
 }
 void IGoodIdentificationTypeApplicationService.When(ICreateGoodIdentificationType c)
 {
     this.When((CreateGoodIdentificationTypeDto)c);
 }
        public virtual void Create(ICreateGoodIdentificationType c)
        {
            IGoodIdentificationTypeStateCreated e = Map(c);

            Apply(e);
        }