Copied to clipboard

Flag this post as spam?

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


  • Krunal Parmar 2 posts 72 karma points
    1 week ago
    Krunal Parmar
    0

    How to use strongly type model generated by API

    I am using API mode to generate my model and it get generated successfully.

    However when I try to use this model I am not able to directly user property of my model like Model.Name , instead my model is exposed through content property of Model. So I have to use it like Model.Content.Name, So I don't see any benefit in generating strongly type model.

    Let me know if there is anything wrong. This is how I am referring my model.

    @using UmbracoViaNuget.Models @inherits Umbraco.Web.Mvc.UmbracoTemplatePage

Please Sign in or register to post replies

Write your reply to:

Draft