emmanueltissera / umbraco-headless-uduf

Tee-Phrase website running on .NET Core 2.2 MVC with Umbraco Headless (beta)
1 stars 2 forks source link

Fixes issues with models and properties #5

Closed sitereactor closed 5 years ago

sitereactor commented 5 years ago

This PR fixes #1 and #4 and it updates all the models to extend ContentBase instead of ContentItem, IContentBase. In the current version of the client library custom models should use ContentBase, as that is what the whole serialization and mapping setup is built up around. ContentItem is only for the raw rest api object. The main difference lies in how the properties are constructed and nested.