/// <summary> /// Adds a folder route for all pages in the specified area and under the specified area folder. /// These pages can be routed via their names prefixed by folder route in addition to the default /// set of path based routes. Links generated for these pages will use the specified folder route. /// Note: Applied to all pages whose razor view file path contains an '/Admin/' segment /// or whose route model properties contains an 'Admin' key. public static PageConventionCollection AddAdminAreaFolderRoute(this PageConventionCollection conventions, string areaName, string folderPath, string folderRoute) { return(conventions.AddAreaFolderRouteInternal(areaName, folderPath, folderRoute, isAdmin: true)); }