Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in guide #1

Open
KrunchMuffin opened this issue Aug 9, 2018 · 3 comments
Open

Typo in guide #1

KrunchMuffin opened this issue Aug 9, 2018 · 3 comments

Comments

@KrunchMuffin
Copy link

Was working through your guide
https://www.pluralsight.com/guides/asp-net-mvc-populating-dropdown-lists-in-razor-views-using-the-mvvm-design-pattern-entity-framework-and-ajax

and noticed this. As a beginner, I was a little confused til I looked at the source here.

image

@ajsaulsberry
Copy link
Owner

Yeah, sorry. Unfortunately, there's no way to correct it: I'm told that the current version of Guides is "just a placeholder". Authors have no editing capability, so I can't correct the file name. My impression is that they're just keeping the articles around for the traffic. My future articles will be published at codeArbor.com, where that isn't a problem.

@KrunchMuffin
Copy link
Author

KrunchMuffin commented Aug 9, 2018 via email

@ajsaulsberry
Copy link
Owner

As you may have discovered by now, when you return to the view you have to do it with the model that came as an argument to the HttpPost action method, or a new instance of the view model. Whenever you see such an error, check to be sure you're using the correct view model--or if you're using a view model at all. While you can use an entity class, and that works fine for simple objects like validation data, you'll paint yourself into a corner if you try to do that for more complex objects. If all this sounds bewildering, I suggest investing the time in the PluralSight class(es) linked in the article, they provide a comprehensive introduction to MVC, EF, and MVVM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants