public async Task <ActionResult> PostAuthPolicyAsync(string topicKeyName, string policyName, List <AccessRights> accessRights) { if (!await _serviceBusService.TopicExistAsync(topicKeyName)) { return(NotFound()); } var result = await _serviceBusService.CreateAuthenticationPolicyAsync(topicKeyName, policyName, accessRights); await _topicRepository.AddTopicLogAsync(new TopicLog() { TopicName = topicKeyName, PolicyName = policyName, AccessRights = accessRights, Action = TopicAction.CreateAuthenticationPolicy }); return(Ok(result)); }