Example #1
0
        public async Task <IActionResult> GetAll()
        {
            try
            {
                var allPolicies = await _hiarcDatabase.GetAllRetentionPolicies();

                return(Ok(allPolicies));
            }
            catch (Exception ex)
            {
                return(BuildErrorResponse(ex, _logger));
            }
        }