示例#1
0
        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);
        }
示例#2
0
        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);
        }