Exemple #1
0
        /// <summary>
        /// ELIMINA un registro de la Entidad GestionComercial.CondicionVenta
        /// En la BASE de DATO la Tabla : [GestionComercial.Condicion]
        /// <summary>
        /// <returns>bool</returns>
        public bool Delete(BECondicion pCondicion)
        {
            int codigoRetorno = -1;

            try
            {
                using (_GestionComercialDataContext SQLDC = new _GestionComercialDataContext(conexion))
                {
                    SQLDC.omgc_D_Condicion(pCondicion.codCondicion,
                                           pCondicion.segUsuarioElimina,
                                           pCondicion.segMaquinaElimina);
                    codigoRetorno = 0;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(codigoRetorno == 0 ? true : false);
        }