防止相同名字的controller冲突,可以在配置路由的时候添加命名空间:
routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" }, new [] { "AreasDemoWeb.Controllers" } );