State Driven UI in ASP.NET Core MVC
In most MVC applications when rending Razor Views, I think the tendency is to use the IUrHelperl.Action inside if anchor href or form action. If you are using ASP.NET Core, maybe you are using tag helpers like anchor tag helper. But there’s another option I don’t see very often, which is creating the relevant routes and define them in your ViewModel within in your controller action. This can be really useful when you’re application’s available actions are driven by state. Razor Here’s a small example of a shopping cart. The view model has a list of products that are in your… Read More »State Driven UI in ASP.NET Core MVC