c# - How to organise Views into folders in Asp.net visual studio? -
i have been forking on project while , ended having lot of view different models. wandering whether possible organise these views sub folders. clear want following:
controllers:
mycontrollers(folder)-> myfirstcontroller.cs mysubcontroller(folder)-> mysubcontroller.cs
views:
myfirst(folder)-> index.cshtml mysub(folder)-> index.cshtml
you allowed put views , controllers wherever want. can customize view paths on app_start event. see tha answer in topic: can specify custom location "search views" in asp.net mvc?
i though recommend using standard project structure , paths. makes life easier other developers work code in future eventually.
Comments
Post a Comment