public ActionResult <IEnumerable <LogVariableDTO> > Get(int from, int size, [FromBody] LogVariableDTO forQuery) { getElasticsearchDataWithQueryAndSizeInterface getData = new GetData_ElasticsearchDAO("http://192.168.0.107:9200/"); List <LogVariableDTO> list = getData.getDataWithQuery(forQuery, from, size, "logforexample"); return(list); }
public ActionResult <IEnumerable <LogVariableDTO> > Get(int from, int size) { getElasticsearchDataWithSizeInterface getData = new GetData_ElasticsearchDAO("http://192.168.0.107:9200/"); List <LogVariableDTO> list = getData.GetLastDatasWithFromAndSize(from, size, "logforexample"); return(list); }