Exemplo n.º 1
0
        private async Task <object> EnableTopic(string topicName)
        {
            var topicExists = await topicsManager.TopicExists(topicName);

            if (!topicExists)
            {
                return(HttpStatusCode.NotFound);
            }
            await topicsManager.EnableTopic(topicName);

            return(HttpStatusCode.OK);
        }