예제 #1
0
        protected virtual IMovementConfirmationLineMvoStateDeleted Map(IDeleteMovementConfirmationLineMvo c)
        {
            var stateEventId = new MovementConfirmationLineMvoEventId(c.MovementConfirmationLineId, c.MovementConfirmationVersion);
            IMovementConfirmationLineMvoStateDeleted e = NewMovementConfirmationLineMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
 void IMovementConfirmationLineMvoApplicationService.When(IDeleteMovementConfirmationLineMvo c)
 {
     this.When((DeleteMovementConfirmationLineMvoDto)c);
 }
예제 #3
0
        public virtual void Delete(IDeleteMovementConfirmationLineMvo c)
        {
            IMovementConfirmationLineMvoStateDeleted e = Map(c);

            Apply(e);
        }
 public virtual void When(IDeleteMovementConfirmationLineMvo c)
 {
     Update(c, ar => ar.Delete(c));
 }