private string queryType(Data data) { if (data.get("page") == null) { return "SELECT * FROM profile WHERE id IN(<SEARCH>)"; } else { return "SELECT * FROM profile WHERE id IN(<SEARCH>) ORDER BY name ASC LIMIT @page, 10"; } }
private string queryType(Data data) { if (data.get("page") == null) { return "SELECT * FROM profile WHERE id IN(<SEARCH>)"; } else { return "SELECT * FROM profile WHERE id IN(<SEARCH>) ORDER BY name ASC LIMIT @page, 10"; } }