RouteConfig配置如下:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
name: "Default",
url: "{systemtype}/{moduler}/{controller}/{action}/{id}",
defaults: new {systemtype= "web", moduler = "Management", controller = "DemandManage", action = "Index", id = UrlParameter.Optional }
);
}
Controller 控制器配置如下:
using System.IO;
using System.Data;
using Platform.BasicData.Model;
using Platform.Framework.Model;
//using Platform.BasicData.Permission.Common;
using Platform.Permission.Web.Common;
using Platform.Framework.Cache;
using Platform.Framework.OSS.Config;
using ICSharpCode.SharpZipLib.Zip;
namespace Platform.Management.Web.Controllers
{
[RoutePrefix("web/Management/DemandManage")]
public class DemandManageController : BaseController
{}
}