protected virtual IOrganizationStateMergePatched Map(IMergePatchOrganization c) { var stateEventId = new OrganizationStateEventId(c.OrganizationId, c.Version); IOrganizationStateMergePatched e = NewOrganizationStateMergePatched(stateEventId); e.Name = c.Name; e.Description = c.Description; e.Type = c.Type; e.IsSummary = c.IsSummary; e.Active = c.Active; e.IsPropertyNameRemoved = c.IsPropertyNameRemoved; e.IsPropertyDescriptionRemoved = c.IsPropertyDescriptionRemoved; e.IsPropertyTypeRemoved = c.IsPropertyTypeRemoved; e.IsPropertyIsSummaryRemoved = c.IsPropertyIsSummaryRemoved; e.IsPropertyActiveRemoved = c.IsPropertyActiveRemoved; e.CommandId = c.CommandId; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; var version = c.Version; return(e); }
public virtual void When(IMergePatchOrganization c) { Update(c, ar => ar.MergePatch(c)); }
void IOrganizationApplicationService.When(IMergePatchOrganization c) { this.When((MergePatchOrganizationDto)c); }
public virtual void MergePatch(IMergePatchOrganization c) { IOrganizationStateMergePatched e = Map(c); Apply(e); }