Пример #1
0
 /// <summary>
 /// 获取授权功能
 /// </summary>
 /// <param name="userId">用户Id</param>
 /// <returns></returns>
 public IEnumerable <ModuleEntity> GetModuleList(string userId)
 {
     if (OperatorProvider.Provider.Current().IsSystem)
     {
         return(moduleBLL.GetList().FindAll(t => t.EnabledMark.Equals(1)));
     }
     else
     {
         return(InstanceDAL.GetModuleList(userId));
     }
 }
Пример #2
0
 /// <summary>
 /// 获取功能列表
 /// </summary>
 /// <param name="objectId">对象Id</param>
 /// <returns></returns>
 public IEnumerable <AuthorizeEntity> GetModuleList(string objectId)
 {
     return(InstanceDAL.GetModuleList(objectId));
 }