ActionResult is Base class while ViewResult is Derived class which is inherit from base class.
ActionResult has various derived class such as "ViewResult", "JSONResult", "FileStreamResult"
ActionResult which is used as Polymorphism. if want to returning multiple views dynamically under one action then "ActionResult" is the best thing.
below is the code you can see Action call dynamic views depending on return Results.
I hope you understand the differece between ViewResult & ActionResult. If you have any query regarding this question then you can comment or contact us on mehulpatelk152@gmail.com
ActionResult which is used as Polymorphism. if want to returning multiple views dynamically under one action then "ActionResult" is the best thing.
below is the code you can see Action call dynamic views depending on return Results.
I hope you understand the differece between ViewResult & ActionResult. If you have any query regarding this question then you can comment or contact us on mehulpatelk152@gmail.com

No comments:
Post a Comment