/// <summary> /// /// </summary> /// <param name="User_Id"></param> /// <param name="pageId"></param> /// <returns></returns> public List <SPT_Get_Role_Button_Result> GetButton(string User_Id, string pageId) { try { using (JSZX_ResourceEntities db = new JSZX_ResourceEntities()) { var linq = from t in db.SPT_Get_Role_Button(User_Id, pageId) select t; return(linq.ToList()); } } catch (Exception ex) { clsLog.ErrorLog("MenuOperate", "GetButton", ex.Message); return(null); } }