public static bool isInUseCampoComuneFasc(string idTemplate, string idCampoComune) { using (DocsPaDB.TransactionContext transactionContext = new DocsPaDB.TransactionContext()) { try { DocsPaDB.Query_DocsPAWS.ModelFasc modelFascDB = new DocsPaDB.Query_DocsPAWS.ModelFasc(); bool result = modelFascDB.isInUseCampoComuneFasc(idTemplate, idCampoComune); transactionContext.Complete(); return(result); } catch (Exception e) { logger.Debug("Errore in ProfilazioneFascicoli - metodo: isInUseCampoComuneFasc", e); return(false); } } }