ASP.NET redirect to controller method in zone

The existence of areas is because the ASP.NET MVC framework can do very large projects. For large projects, there may be duplicate names between modules. Areas are to deal with duplicate names:

Adding method:

 

I thought it wouldn't work, but the result can really be written as

  if (this.HttpContext.Request.Browser.IsMobileDevice)
            {
                return RedirectToAction("Index", "System/MobileHome");
            }
            return View();

File structure:

Guess you like

Origin blog.csdn.net/qq_36445227/article/details/91952734