public async Task <ActionResult> DeleteAsync(string topicKeyName) { if (!await _serviceBusService.TopicExistAsync(topicKeyName)) { return(NotFound()); } await _serviceBusService.DeleteTopicAsync(topicKeyName); await _topicRepository.AddTopicLogAsync(new TopicLog() { TopicName = topicKeyName, Action = TopicAction.DeleteTopic }); return(Ok()); }