public async Task <IActionResult> Get(string key) { try { var theGroup = await _hiarcDatabase.GetGroup(key); return(Ok(theGroup)); } catch (InvalidOperationException ex) { _logger.LogError(ex.Message); return(StatusCode(StatusCodes.Status403Forbidden)); } catch (Exception ex) { return(BuildErrorResponse(ex, _logger)); } }