Пример #1
0
        public async Task <string> CreateUserFavoriteAsync(int userId, int fileReferenceId, CancellationToken token = default)
        {
            var response = await _cachingService.AddOrGetExistingAsync
                           (
                userId,
                CacheRegions.FileReferences,
                () => _graphQLService.CreateUserFavoriteAsync(userId, fileReferenceId, token)
                           ).ConfigureAwait(false);

            return(response);
        }