I’ve finally decided to dive into .NET Core. Trepidatious at first, it took about an hour until I was hooked. Having just dove into Node.js and Express, ASP.NET Core felt a little like an old friend. However, this is not what this post is about. It’s about the lambda operator and how to use them…
Category: ASP.NET MVC
What is MVC?
TL;DR: MVC = Model View Controller. Data from a database is represented as a model class. The view takes that data represented by the model and inserts it into an HTML template that is written into the view. The controller is responsible for creating the model from data retrieved from a database and passing that model into the view.
Turn a Razor Model into a JavaScript Model
Note: This post is out of date, please see the updated version here If you really want to read it, please be my guest but this method is unnecessary and @Html.Raw presents many XSS security issues. TL;DR: This one is a little different than my other posts. Basically, I wrote some code that I’m happy…