Hi, I have a scenario in Asp.Net MVC where I want to pass a county name and state name in the URL and the Controller should be able to load the view accordingly but I dont want to make multiple controllers for each Country. Is it possible in MVC.
Thanks in advance.
Jenith ThakkarPosted Aug 10, 2018, 4:07 AM
harshit vermaPosted Aug 10, 2018, 3:52 AM
Jenith ThakkarPosted Aug 10, 2018, 2:54 AM
Let Me Explain Suppose your Method Name is CountrySelection in CountryController then
//Here CountryName and StateName is Parameter which you have to pass in Url