public async Task <IActionResult> Create([FromBody] CreateRetentionPolicyRequest request) { try { var newRetentionPolicy = await _hiarcDatabase.CreateRetentionPolicy(request); var uri = $"{_hiarcSettings.BaseUri}/retentionpolicies/{newRetentionPolicy.Key}"; return(Created(uri, newRetentionPolicy)); } catch (Exception ex) { return(BuildErrorResponse(ex, _logger)); } }