public void Remove(Acusado obj)
 {
     using (ISession session = NHibernateHelperCcg2009.AbreSessao())
     {
         ITransaction tx = session.BeginTransaction();
         session.Delete(obj);
         tx.Commit();
     }
 }
        public int Gravar(Acusado obj)
        {
            using (ISession session = NHibernateHelperCcg2009.AbreSessao())
            {
                ITransaction tx = session.BeginTransaction();

                session.Merge(obj);

                tx.Commit();
                return(obj.IdAcusado);
            }
        }