Example #1
0
        protected virtual IPicklistStateDeleted Map(IDeletePicklist c)
        {
            var stateEventId        = new PicklistEventId(c.PicklistId, c.Version);
            IPicklistStateDeleted e = NewPicklistStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
 void IPicklistApplicationService.When(IDeletePicklist c)
 {
     this.When((DeletePicklistDto)c);
 }
Example #3
0
 public virtual void When(IDeletePicklist c)
 {
     Update(c, ar => ar.Delete(c));
 }
Example #4
0
        public virtual void Delete(IDeletePicklist c)
        {
            IPicklistStateDeleted e = Map(c);

            Apply(e);
        }