Beispiel #1
0
        /// <summary>
        /// 获取角色列表
        /// </summary>
        /// <returns></returns>
        public JsonResult GetRoles()
        {
            var list = ManageSystemBusiness.GetRoles();

            JsonDictionary.Add("items", list);
            return(new JsonResult()
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Beispiel #2
0
        //
        // GET: /SysSet/

        public ActionResult Users()
        {
            ViewBag.Roles = ManageSystemBusiness.GetRoles();
            return(View());
        }