public IActionResult GetValue([FromQuery] KeyDto key) { try { var res = _keysService.GetValue(key); if (res == null) { return(NotFound()); } return(Ok(res)); } catch (Exception e) { return(BadRequest(e)); } }