protected virtual IGoodIdentificationTypeStateDeleted Map(IDeleteGoodIdentificationType c)
        {
            var stateEventId = new GoodIdentificationTypeEventId(c.GoodIdentificationTypeId, c.Version);
            IGoodIdentificationTypeStateDeleted e = NewGoodIdentificationTypeStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();


            return(e);
        }
 public virtual void When(IDeleteGoodIdentificationType c)
 {
     Update(c, ar => ar.Delete(c));
 }
 void IGoodIdentificationTypeApplicationService.When(IDeleteGoodIdentificationType c)
 {
     this.When((DeleteGoodIdentificationTypeDto)c);
 }
        public virtual void Delete(IDeleteGoodIdentificationType c)
        {
            IGoodIdentificationTypeStateDeleted e = Map(c);

            Apply(e);
        }