Ejemplo n.º 1
0
        /// <summary>
        /// ELIMINA un registro de la Entidad GestionComercial.ParteDiario
        /// En la BASE de DATO la Tabla : [GestionComercial.ParteDiario]
        /// <summary>
        /// <returns>bool</returns>
        public bool Delete(string prm_CodigoPersonaEmpre, string prm_CodigoPuntoVenta, string prm_CodigoParte)
        {
            int codigoRetorno = -1;

            try
            {
                using (_GestionComercialDataContext SQLDC = new _GestionComercialDataContext(conexion))
                {
                    codigoRetorno = SQLDC.omgc_D_ParteDiario(prm_CodigoPersonaEmpre,
                                                             prm_CodigoPuntoVenta,
                                                             prm_CodigoParte);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(codigoRetorno == 0 ? true : false);
        }