public void MoveAccountBlogPost(string ticket, int postid, int targetid) { using (SnCore.Data.Hibernate.Session.OpenConnection()) { ISession session = SnCore.Data.Hibernate.Session.Current; ManagedSecurityContext sec = new ManagedSecurityContext(session, ticket); ManagedAccountBlogPost post = new ManagedAccountBlogPost(session, postid); post.Move(sec, targetid); SnCore.Data.Hibernate.Session.Flush(); } }
public void MoveAccountBlogPost(string ticket, int postid, int targetid) { using (SnCore.Data.Hibernate.Session.OpenConnection()) { ISession session = SnCore.Data.Hibernate.Session.Current; ManagedSecurityContext sec = new ManagedSecurityContext(session, ticket); ManagedAccountBlogPost post = new ManagedAccountBlogPost(session, postid); post.Move(sec, targetid); SnCore.Data.Hibernate.Session.Flush(); } }