Example #1
0
 /// <summary>
 /// 获取用户的资源列表
 /// </summary>
 /// <param name="repo"></param>
 /// <param name="userId">用户Id</param>
 /// <returns></returns>
 public static ResourceList GetResourceListByUserId(this ResourceOperationRepository repo, long userId)
 {
     return(repo.Extension <ResourceRepositoryExtension>().GetResourceListByUserId(userId));
 }
Example #2
0
 /// <summary>
 /// 获取指定用户、资源的操作列表
 /// </summary>
 /// <param name="repo"></param>
 /// <param name="userId">用户Id</param>
 /// <param name="resourceId">资源Id</param>
 /// <returns></returns>
 public static ResourceOperationList GetResourceOperation(this ResourceOperationRepository repo, long userId, long resourceId)
 {
     return(repo.Extension <ResourceOperationRepositoryExtension>().GetResourceOperation(userId, resourceId));
 }