Example #1
0
        /// <summary>
        /// Elimina un expediente de la tabla Facturas por una llave primaria compuesta.
        /// </summary>
        public bool Delete(string CodigoSistema)
        {
            int CodigoRetorno = -1;

            try
            {
                using (_DBMLSeguridadSistemaDataContext SeguridadDC = new _DBMLSeguridadSistemaDataContext(conexion))
                {
                    CodigoRetorno = SeguridadDC.omgc_mnt_Delete_Sistema(CodigoSistema);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(CodigoRetorno == 0 ? true : false);
        }