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