Avoid hard-coding controller and action names

前端 未结 5 801
攒了一身酷
攒了一身酷 2020-12-24 15:19

ASP.NET MVC seems to be encouraging me to use hard-coded strings to refer to controllers and actions.

For example, in a controller:

return RedirectT         


        
5条回答
提交回复
热议问题