Example #1
0
        public async Task <Topic> AddOrUpdateTopicAsync(Topic topic)
        {
            var newTopic = await _repoFactory.InvokeFuncAsync(r => r.AddOrUpdateTopicAsync(topic), _invokeOptions);

            UpdateTopicCache(newTopic);
            return(newTopic);
        }
Example #2
0
        public async Task <Subscription> AddOrUpdateSubscriptionAsync(Subscription subscription)
        {
            var sub = await _repoFactory.InvokeFuncAsync <Subscription>(r => r.AddOrUpdateSubscriptionAsync(subscription), _invokeOptions);

            UpdateSubscriptionCache(sub);
            return(sub);
        }