public TributIssDTO salvarAtualizarTributIss(TributIssDTO tributIss)
 {
     try
     {
         using (ISession session = NHibernateHelper.getSessionFactory().OpenSession())
         {
             NHibernateDAL <TributIssDTO> DAL = new NHibernateDAL <TributIssDTO>(session);
             DAL.saveOrUpdate(tributIss);
             session.Flush();
         }
         return(tributIss);
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.Message + (ex.InnerException != null ? " " + ex.InnerException.Message : ""));
     }
 }
 public IList <TributIssDTO> selectTributIss(TributIssDTO tributIss)
 {
     try
     {
         IList <TributIssDTO> resultado = null;
         using (ISession session = NHibernateHelper.getSessionFactory().OpenSession())
         {
             NHibernateDAL <TributIssDTO> DAL = new NHibernateDAL <TributIssDTO>(session);
             resultado = DAL.select(tributIss);
         }
         return(resultado);
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.Message + (ex.InnerException != null ? " " + ex.InnerException.Message : ""));
     }
 }
 public int deleteTributIss(TributIssDTO tributIss)
 {
     try
     {
         int resultado = -1;
         using (ISession session = NHibernateHelper.getSessionFactory().OpenSession())
         {
             NHibernateDAL <TributIssDTO> DAL = new NHibernateDAL <TributIssDTO>(session);
             DAL.delete(tributIss);
             session.Flush();
             resultado = 0;
         }
         return(resultado);
     }
     catch (Exception ex)
     {
         throw new FaultException(ex.Message + (ex.InnerException != null ? " " + ex.InnerException.Message : ""));
     }
 }