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.

Amr ElshaerPosted Nov 18, 2020, 4:53 AM
Kiran MohantyPosted Nov 17, 2020, 6:41 AM
Sachin SinghPosted Nov 17, 2020, 6:02 AM