public IActionResult Get([FromQuery] SearchFilterDTO filter) { try { var data = _elasticsearchService.Search(filter); if (data == null) { return(NotFound()); } return(Ok(data)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }