Change controller name without losing information

1

I have a Controller called Home and I'm trying to change it to BPA.

I want to know if I just change the name HomeController to BpaController and change the name of the Home folder in the View folder.

Or if you need to change something else to work without problems.

    
asked by anonymous 29.08.2017 / 23:19

1 answer

2

To change the name of a class and its references, I suggest that you change the file name by Visual Studio in Solution Explorer , so , it will ask you if you also want to change all references of that class , making the whole process automatically for you.

All references HomeController will be changed, however, you should change the references to the word Home manually.

    
29.08.2017 / 23:53