If you Want To make your view Take more argument you can use Tuple instead of making an object
Let`s say I have a view that takes IEnumerable of Student If I want to pass something with it to view I make an object
that contain IEnumerable of student and string Message or using ViewBag or ViewData so you can use Tuple
in view (IEnumerable students, string message) so it makes view code and view dependency.


Sachin SinghRank #66 · 26.2K reputationPosted Nov 17, 2020, 1:02 AM EST
Kiran MohantyRank #821 · 2.8K reputationPosted Nov 17, 2020, 1:41 AM EST
Amr ElshaerRank #3,748 · 395 reputationPosted Nov 17, 2020, 11:53 PM EST