예제 #1
0
        /// <summary>
        /// Elimina una fila de la tabla
        /// </summary>
        /// <param name="id">FIla a eliminar</param>
        /// <returns></returns>
        public bool Delete_SesionById(int id)
        {
            GestionDataSetTableAdapters.QueriesTableAdapter QTA = new GestionDataSetTableAdapters.QueriesTableAdapter();
            int r = QTA.Delete_SesionById(id);

            if (r == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
예제 #2
0
        /// <summary>
        /// Elimina una fila de la tabla. Devuelve un bool si se eliminó algo o no
        /// </summary>
        /// <param name="id">Fila a eliminar</param>
        /// <returns></returns>
        public bool Delete_TreatmentById(int id)
        {
            GestionDataSetTableAdapters.QueriesTableAdapter QTA = new GestionDataSetTableAdapters.QueriesTableAdapter();
            int r = QTA.Delete_TreatmentById(id);

            QTA.Delete_SesionById(id);

            if (r == 0)
            {
                return(false);          //Chequea si se eliminó algo o no
            }
            else
            {
                return(true);
            }
        }