Copied to clipboard

Flag this post as spam?

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


  • blackhawk 313 posts 1367 karma points
    Jun 26, 2017 @ 21:15
    blackhawk
    0

    Spelling for Contact Model when referencing the model via class file

    I installed Umbraco 7.6.3. via Nuget package through Visual Studio 2017. I'm walking through a tutorial on creating a contact form. I got to the point of creating a surface controller.

    When I reference the model like so on top of my page...

    using umb02.models;
    

    ...and I want to reference ContactModel in my private voide function, Visual Studio tells me that the following is correct....

    private void SendEmail(CnotactModel model) {
    ...
    }
    

    Shouldn't CnotactModel be ContactModel?

    Thanks

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Jun 26, 2017 @ 21:17
    Alex Skrypnyk
    100

    CnotactModel should be CnotactModel, but please check your solution, press F12 on CnotactModel and look how a class called.

    Thanks,

    Alex

  • blackhawk 313 posts 1367 karma points
    Jun 26, 2017 @ 21:29
    blackhawk
    0

    Ah I understand now! Thanks for clearing that up!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies