Пример #1
0
        public IActionResult AdminRole()
        {
            IList <AdminRoles> list = AdminRoles.FindAll(AdminRoles._.Id > 0, AdminRoles._.Rank.Asc(), null, 0, 0);

            Core.Admin.WriteLogActions("查看管理组列表;");
            return(View(list));
        }
Пример #2
0
        public IActionResult AddAdmin()
        {
            //加载管理组
            IList <AdminRoles> list = AdminRoles.FindAll(AdminRoles._.Id > 0, AdminRoles._.Rank.Asc(), null, 0, 0);

            ViewBag.RoleList = list;
            Core.Admin.WriteLogActions("查看添加管理员页面;");
            return(View());
        }
Пример #3
0
        public IActionResult AddAdmin()
        {
            //加载管理组
            IList <AdminRoles> list = AdminRoles.FindAll(AdminRoles._.Id > 0, AdminRoles._.Rank.Asc(), null, 0, 0);

            ViewBag.RoleList    = list;
            ViewBag.passwordTip = Utils.GetPasswordStrengthTip(_systemSetting.PasswordStrength);
            Core.Admin.WriteLogActions("查看添加管理员页面;");
            return(View());
        }
Пример #4
0
        public IActionResult EditAdmin(int id)
        {
            //加载管理组
            IList <AdminRoles> list = AdminRoles.FindAll(AdminRoles._.Id > 0, AdminRoles._.Rank.Asc(), null, 0, 0);

            ViewBag.RoleList = list;

            Core.Admin entity = Core.Admin.Find(Core.Admin._.Id == id);
            if (entity == null)
            {
                return(EchoTipPage("系统找不到本记录!"));
            }
            Core.Admin.WriteLogActions($"查看/编辑管理员({entity.UserName});");
            return(View(entity));
        }