自动生成菜单,相应控制其方法加上DisplayName、Description特性

This commit is contained in:
xxred
2018-11-07 17:15:42 +08:00
parent 787a76798f
commit 2ab7ecc9b0
23 changed files with 557 additions and 3 deletions
+3
View File
@@ -43,6 +43,9 @@ namespace COMCMS.Web
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
// 注册菜单
MenuRegister.Register();
//注入自己的HttpContext
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
//services.AddMvc().AddSessionStateTempDataProvider();