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..
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 theIContentService
. Does it mean there is no way to pass instance ofPublishedContentModel
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..
is working on a reply...