public virtual IOrganizationState ToOrganizationState() { var state = new OrganizationState(true); state.OrganizationId = this.OrganizationId; state.Name = this.Name; state.Description = this.Description; state.Type = this.Type; if (this.IsSummary != null && this.IsSummary.HasValue) { state.IsSummary = this.IsSummary.Value; } if (this.Active != null && this.Active.HasValue) { state.Active = this.Active.Value; } if (this.Version != null && this.Version.HasValue) { state.Version = this.Version.Value; } state.CreatedBy = this.CreatedBy; if (this.CreatedAt != null && this.CreatedAt.HasValue) { state.CreatedAt = this.CreatedAt.Value; } state.UpdatedBy = this.UpdatedBy; if (this.UpdatedAt != null && this.UpdatedAt.HasValue) { state.UpdatedAt = this.UpdatedAt.Value; } return(state); }
public static CreateOrganization ToCreateOrganization(this OrganizationState state) { return(state.ToCreateOrganization <CreateOrganization>()); }
public static DeleteOrganization ToDeleteOrganization(this OrganizationState state) { return(state.ToDeleteOrganization <DeleteOrganization>()); }
public static MergePatchOrganization ToMergePatchOrganization(this OrganizationState state) { return(state.ToMergePatchOrganization <MergePatchOrganization>()); }
public static IOrganizationCommand ToCreateOrMergePatchOrganization(this OrganizationState state) { return(state.ToCreateOrMergePatchOrganization <CreateOrganization, MergePatchOrganization>()); }