ASP.NET MVC requests are routed to a controller. It’s the controller that decides what view to call and what data (model) to pass to it. ...
[U]sing a base class with a categories property and have ViewModel classes inherit from it would just be bloating models with unrelated data and concerns.
http://www.arrangeactassert.com/when-to-use-html-renderpartial-and-html-renderaction-in-asp-net-mvc-razor-views/
No comments:
Post a Comment