public bool updateStatus(string id, int status) { string query_string = "UPDATE `t_borrow` SET `status`=@status WHERE `id`=@id"; return(MysqlTool.updateData(query_string, new MySqlParameter[] { new MySqlParameter("@id", id), new MySqlParameter("@status", status) })); }
public bool updateOne(Technology one) { string query_string = "UPDATE `t_technology` SET `mode`=@mode WHERE `id`=@id"; return(MysqlTool.updateData(query_string, new MySqlParameter[] { new MySqlParameter("@id", one.Id), new MySqlParameter("@mode", one.Mode) })); }