public IActionResult GetUniquePatterns() { try { var res = _keysService.GetUniqueFields(); if (res == null) { return(NotFound()); } var results = new { Patterns = res }; return(Ok(results)); } catch (Exception e) { return(BadRequest(e)); } }