Forum Discussion
DSK Chakravarthy
Nov 26, 2023Brass Contributor
MVC Controller Method Overloading
Hi Folks, The application is built using .NET Framework 4.5.2 with MVC pattern. The current situation requires validating the input parameter and redirecting to the respective method. pu...
AddWebSolution
Dec 06, 2023Brass Contributor
Hi DSK Chakravarthy,
Please refer this below article it will give you clear idea about the method overloading.
Here is the solution,
https://www.ifourtechnolab.com/blog/overloading-action-method-in-asp-net-mvc#:~:text=Method%20Overloading%20in%20MVC,-When%20we%20try&text=It%20simply%20does%20not%20know,value%20of%20address%20or%20name.
Thanks & Best regards,
AddWebSolution
Please refer this below article it will give you clear idea about the method overloading.
Here is the solution,
https://www.ifourtechnolab.com/blog/overloading-action-method-in-asp-net-mvc#:~:text=Method%20Overloading%20in%20MVC,-When%20we%20try&text=It%20simply%20does%20not%20know,value%20of%20address%20or%20name.
Thanks & Best regards,
AddWebSolution
DSK Chakravarthy
Dec 06, 2023Brass Contributor
Thank you for the tip. I understand the trick with the help of ActionName attribute. But my point is without that. The input payload should define the method to execute rather than the alias name to point the various overloaded methods.