Пример #1
0
        public Task <SearchResourceSetResult> Execute(SearchCurrentUserResourceSetParameter searchCurrentUserResourceSetParameter)
        {
            if (searchCurrentUserResourceSetParameter == null)
            {
                throw new ArgumentNullException(nameof(searchCurrentUserResourceSetParameter));
            }

            var parameter = new SearchResourceSetParameter
            {
                Owners     = new[] { searchCurrentUserResourceSetParameter.Owner },
                StartIndex = searchCurrentUserResourceSetParameter.StartIndex,
                Count      = searchCurrentUserResourceSetParameter.Count
            };

            return(_resourceSetRepository.Search(parameter));
        }
Пример #2
0
 public Task <SearchResourceSetResult> GetCurrentUserResources(SearchCurrentUserResourceSetParameter parameter)
 {
     return(_getCurrentUserResourcesAction.Execute(parameter));
 }