I am using MVC 4, I created an admin folder and my controller actions are referencing the views in the admin folder like:
/controllers/admin/UserController.cs
My views are here:
/views/admin/users/index.cshtml
My controller action looks like:
public ActionResult Index()
{
return View("~/Views/Admin/Users/Index.cshtml");
}
How can I now setup the routes for all my admin controllers so that the URL has the 'Admin' folder in the URL:
http://localhost/admin/user/index
Note: MVC 4 does not have "areas".