Copied to clipboard

Flag this post as spam?

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


  • ThomasBrunbjerg 90 posts 182 karma points
    Sep 04, 2017 @ 10:57
    ThomasBrunbjerg
    0

    Accessing Entity Framework CRUD views

    I'm trying to generate a link to my Create view, which i scaffolded using Entity Framework. The views are all there and looking fine, but for some reason I can't link to them through normal means from my Umbraco template.

    I tried using the Url.Action method for the href attribute in my link:

    @Url.Action("Bookings", "Create")
    

    But that just generates an empty link with no href. I tried creating an action link as well, but that behaved the same way.

    I set the layout for my CRUD views to my master template in Umbraco. This is the structure for my ADO.NET Data model: https://i.imgur.com/y0oNnWn.png

    How is the correct approach to do this? Does Umbraco use some other methods or controllers to inherit from?

Please Sign in or register to post replies

Write your reply to:

Draft