Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Issue: "Add view" can update the controller action to pass view name in the constructor [647]

$
0
0

1. Create a simple MVC web application.
2. Right click on any of the controller actions and "Add a View".
3. This will add a view to the controller action. But the controller action has the code return view();

Expected:
Instead of invoking the view's default constructor view(), it would be good if the action gets updated to invoke the view's constructor that takes view name as parameter. - return View("viewname").
It helps in code readability as I can clearly know the associated view of a controller action by looking at it instead of clicking on "Go to view" each time.




Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>