public static ModelNode AddContentTypeFieldLink(this ModelNode model, FieldDefinition definition, Action <ModelNode> action)
        {
            if (definition.Id != default(Guid))
            {
                return(model.AddContentTypeFieldLink(new ContentTypeFieldLinkDefinition
                {
                    FieldId = definition.Id
                }, action));
            }

            return(model.AddContentTypeFieldLink(new ContentTypeFieldLinkDefinition
            {
                FieldInternalName = definition.InternalName
            }, action));
        }
 public static ModelNode AddContentTypeFieldLink(this ModelNode model, FieldDefinition definition, Action <ModelNode> action)
 {
     return(model.AddContentTypeFieldLink(new ContentTypeFieldLinkDefinition
     {
         FieldId = definition.Id
     }, action));
 }