Parameter binding from forms, antiforgery tokens, and Native AOT are now supported in ASP.NET Core. Here’s how to take advantage of them. ASP.NET Core offers a simplified hosting model, called minimal ...
However, sometimes model binding doesn't do what I'd like. For example, let's say my Customer object looks like this: public class Customer { int id {get; set;} string FirstName {get; set;} string ...
Take advantage of automatic model state validation in ASP.Net Core to avoid tedious manual coding for HTML form validation When we create applications that accept data from users, we must validate ...
How to unit test view model validation, focusing on the controller when the model is bound to a controller action. Welcome to part 4 in the TDD for ASP.NET MVC series. This time, I'll cover how to ...