Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeffrey Weinstein 67 posts 313 karma points
    Oct 18, 2022 @ 22:20
    Jeffrey Weinstein
    0

    passing PublishedContentModel into IContentService

    I would like to construct page form outside API call ( i got that figured thanks to post here ) and next step is to create strongly typed content - Inherited from Umbraco.Cms.Core.Models.PublishedContent.PublishedContentModel.

    However I was only able to find SetValue() method in the IContentService. Does it mean there is no way to pass instance of PublishedContentModel to IContentService to publish it? I have to call SetValue for each property? Passing there string identifier of a property? That seems like a wasted oportunity for cleaner API..

    Thanks for any advice..

Please Sign in or register to post replies

Write your reply to:

Draft