Ejemplo n.º 1
0
 public void MessageProcessed2(int id)
 {
     try
     {
         DBConnService2.Update("UPDATE messages SET status = '1', updated_at = '" + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "', updated_by='Carpool System' WHERE id = " + id);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Failed to Update Message Status");
     }
 }
Ejemplo n.º 2
0
        public bool UpdateModemActive(int modem_id, int status, int is_on)
        {
            try
            {
                return(DBConnService.Update("UPDATE sms_modem SET status=" + status + ", is_on = " + is_on + " WHERE id=" + modem_id));
            } catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }

            return(false);
        }
Ejemplo n.º 3
0
 public void MessageProcessed(int id)
 {
     try
     {
         DBConnService.Update("UPDATE sms_pesan SET status = '1' WHERE id = " + id);
     } catch (Exception ex)
     {
         Console.WriteLine("Failed to Update Message Status");
     }
 }