/// <summary> /// Elimina un expediente de la tabla Facturas por una llave primaria compuesta. /// </summary> public bool Delete(string CodigoOpcion) { int CodigoRetorno = -1; try { using (_DBMLSeguridadSistemaDataContext SeguridadDC = new _DBMLSeguridadSistemaDataContext(conexion)) { CodigoRetorno = SeguridadDC.omgc_mnt_Delete_Opcion(CodigoOpcion); } } catch (Exception ex) { throw ex; } return(CodigoRetorno == 0 ? true : false); }