public bool AddShareathonPost(SharethonPost shareathon)
        {
            bool IsSuccess = false;

            //Creates a database connection and opens up a session
            using (NHibernate.ISession session = SessionFactory.GetNewSession())
            {
                //After Session creation, start Transaction.
                using (NHibernate.ITransaction transaction = session.BeginTransaction())
                {
                    //Proceed action, to Save data.
                    try
                    {
                        session.Save(shareathon);
                        transaction.Commit();
                        IsSuccess = true;
                        return(IsSuccess);
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.StackTrace);
                        return(IsSuccess);
                    }
                } //End Transaction
            }     //End Session
        }
 public PagePostDetails(SharethonPost _SharethonPost, int postCount)
 {
     this._SharethonPost = _SharethonPost;
     this.postCount      = postCount;
 }