public async Task <ActionResult> PostAsync(string topicKeyName) { if (await _serviceBusService.TopicExistAsync(topicKeyName)) { var topic = await _serviceBusService.GetTopicAsync(topicKeyName); return(Ok(topic)); } var result = await _serviceBusService.CreateTopicAsync(topicKeyName); await _topicRepository.AddTopicLogAsync(new TopicLog() { TopicName = topicKeyName, Action = TopicAction.CreateTopic }); return(Ok(result)); }