Exemplo n.º 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
            });
        }
Exemplo n.º 2
0
        //
        // GET: /SysSet/

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