public WxUser Save(WxUser user)
 {
     using (ISession session = NHibernateHelper.OpenSession())
     {
         user.ID = Convert.ToInt32(session.Save(user));
     }
     return user;
 }
 public void Update(WxUser user)
 {
     using (ISession session = NHibernateHelper.OpenSession())
     {
         session.Update(user);
         session.Flush();
     }
 
 }