Both codes are the same except the query.
Maybe I could call, from the same code, to different queries (depending on a bool) or maybe the query values could be binded in another function.
Being the queries different but with the same values, maybe a calling another function for the query string makes sense.
Both codes are the same except the query. Maybe I could call, from the same code, to different queries (depending on a bool) or maybe the query values could be binded in another function.
Being the queries different but with the same values, maybe a calling another function for the query string makes sense.