protected virtual IRejectionReasonStateMergePatched Map(IMergePatchRejectionReason c) { var stateEventId = new RejectionReasonEventId(c.RejectionReasonId, c.Version); IRejectionReasonStateMergePatched e = NewRejectionReasonStateMergePatched(stateEventId); e.Description = c.Description; e.Active = c.Active; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; 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(IMergePatchRejectionReason c) { Update(c, ar => ar.MergePatch(c)); }
public virtual void MergePatch(IMergePatchRejectionReason c) { IRejectionReasonStateMergePatched e = Map(c); Apply(e); }
void IRejectionReasonApplicationService.When(IMergePatchRejectionReason c) { this.When((MergePatchRejectionReasonDto)c); }