Beispiel #1
0
 public bool EliminarAviso(ColaAvisoRender _colaAviso)
 {
     try
     {
         using (var conexion = new SQLiteConnection(Path.Combine(Directorio, _db)))
         {
             conexion.Delete(_colaAviso);
             return(true);
         }
     }
     catch (SQLiteException ex)
     {
         Log.Info("SQLiteEx", ex.Message);
         return(false);
     }
 }
Beispiel #2
0
 public bool ActualizarAvisoCola(ColaAvisoRender _colaaviso)
 {
     try
     {
         using (var conexion = new SQLiteConnection(System.IO.Path.Combine(Directorio, _db)))
         {
             conexion.Update(_colaaviso);
             conexion.Close();
             return(true);
         }
     }
     catch (SQLiteException ex)
     {
         Log.Info("SQLiteEx", ex.Message);
         return(false);
     }
 }
Beispiel #3
0
 public bool InsertarCola(ColaAvisoRender _ColaAviso)
 {
     try
     {
         using (var conexion = new SQLiteConnection(Path.Combine(Directorio, _db)))
         {
             conexion.Insert(_ColaAviso);
             conexion.Close();
             return(true);
         }
     }
     catch (SQLiteException ex)
     {
         Log.Info("SQLiteEx", ex.Message);
         return(false);
     }
 }