public ActionResult GetPopedomsByRoleIDStr(int id) { List <Popedoms> list = PopedomRoleBLL.GetPopedomsByRoleID(id); var listed = from s in list select new { s.PopName }; return(Json(listed)); }
/// <summary> /// 获取所有权限 /// </summary> /// <returns></returns> public ActionResult GetPopedomsAll() { List <Popedoms> list = PopedomRoleBLL.GetPopedomsAll(); var listed = from s in list select new { s.PopID, s.PopParentID, s.PopName, s.PopDesc, s.PopIsMenu, }; return(Json(listed)); }
public ActionResult EditRolePopedoms(int id, List <int?> list) { try { if (PopedomRoleBLL.EditRolePopedoms(id, list) > 0) { return(Content("edit_yes")); } else { return(Content("edit_no")); } } catch (Exception ex) { return(Content(ex.Message)); } }