protected virtual IOrganizationStructureStateDeleted Map(IDeleteOrganizationStructure c)
        {
            var stateEventId = new OrganizationStructureStateEventId(c.Id, c.Version);
            IOrganizationStructureStateDeleted e = NewOrganizationStructureStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = DateTime.Now;


            return(e);
        }
        protected virtual IOrganizationStructureStateDeleted Map(IDeleteOrganizationStructure c)
        {
            var stateEventId = new OrganizationStructureEventId(c.Id, c.Version);
            IOrganizationStructureStateDeleted e = NewOrganizationStructureStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
        public virtual void Delete(IDeleteOrganizationStructure c)
        {
            IOrganizationStructureStateDeleted e = Map(c);

            Apply(e);
        }
Esempio n. 4
0
 public virtual void When(IDeleteOrganizationStructure c)
 {
     Update(c, ar => ar.Delete(c));
 }
Esempio n. 5
0
 void IOrganizationStructureApplicationService.When(IDeleteOrganizationStructure c)
 {
     this.When((DeleteOrganizationStructureDto)c);
 }