public int Guardar() { try { a = con.Conectar(); } catch (Exception) { throw; } string sql = "INSERT INTO TRAZABILIDAD VALUES ('" + tarea.GetId() + "', '" + estado.GetId() + "', '" + Fecha + "', '" + Hora + "')"; int num = con.operaracion(sql, a); return(num); }
public int Guardar() { try { a = con.Conectar(); } catch (Exception) { throw; } string sql = "INSERT INTO VIDEOJUEGO VALUES ('" + Objetivo + "', '" + PublicoObjetivo + "', '" + Cliente.Cedula + "', '" + Tarea.GetId() + "', '" + Costo + "')"; int n = con.operaracion(sql, a); return(n); }