Ejemplo n.º 1
0
 public int SyndicateAccountBlog(string ticket, int id)
 {
     using (SnCore.Data.Hibernate.Session.OpenConnection())
     {
         ISession session              = SnCore.Data.Hibernate.Session.Current;
         ManagedSecurityContext sec    = new ManagedSecurityContext(session, ticket);
         ManagedAccountBlog     m_blog = new ManagedAccountBlog(session, id);
         int result = m_blog.Syndicate(sec);
         SnCore.Data.Hibernate.Session.Flush();
         return(result);
     }
 }
Ejemplo n.º 2
0
 public int SyndicateAccountBlog(string ticket, int id)
 {
     using (SnCore.Data.Hibernate.Session.OpenConnection())
     {
         ISession session = SnCore.Data.Hibernate.Session.Current;
         ManagedSecurityContext sec = new ManagedSecurityContext(session, ticket);
         ManagedAccountBlog m_blog = new ManagedAccountBlog(session, id);
         int result = m_blog.Syndicate(sec);
         SnCore.Data.Hibernate.Session.Flush();
         return result;
     }
 }