//Mohsin faras(04/01/2014)
    public void AddEditDel_NewBlogComment(DO_NewBlogs objBlog, BlogCommnet flag)
    {
        SqlConnection conn = new SqlConnection();
        SQLManager    co   = new SQLManager();

        conn            = co.GetConnection();
        cmd             = new SqlCommand("Scrl_AddEditDelNewBlogComments", conn);
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Parameters.Add("@FlagNo", SqlDbType.Int).Value                 = flag;
        cmd.Parameters.Add("@intCommentId", SqlDbType.Int).Value           = objBlog.intCommentId;
        cmd.Parameters.Add("@intBlogId", SqlDbType.Int).Value              = objBlog.intBlogId;
        cmd.Parameters.Add("@strComment", SqlDbType.VarChar, 1000).Value   = objBlog.strComment;
        cmd.Parameters.Add("@intAddedBy", SqlDbType.Int).Value             = objBlog.intAddedBy;
        cmd.Parameters.Add("@strIPAddress", SqlDbType.VarChar, 20).Value   = objBlog.strIPAddress;
        cmd.Parameters.Add("@intModifiedBy", SqlDbType.VarChar, 200).Value = objBlog.intModifiedBy;
        objBlog.intOutId = Convert.ToInt32(cmd.ExecuteScalar());
        co.CloseConnection(conn);
    }
    public DataTable GetDataTableComment(DO_NewBlogs objBlog, BlogCommnet flag)
    {
        DataTable dt = new DataTable();

        SqlConnection conn = new SqlConnection();
        SQLManager    co   = new SQLManager();

        conn = co.GetConnection();

        SqlDataAdapter da = new SqlDataAdapter();

        da.SelectCommand             = new SqlCommand("Scrl_AddEditDelNewBlogComments", conn);
        da.SelectCommand.CommandType = CommandType.StoredProcedure;
        da.SelectCommand.Parameters.Add("@FlagNo", SqlDbType.Int).Value                 = flag;
        da.SelectCommand.Parameters.Add("@intCommentId", SqlDbType.Int).Value           = objBlog.intCommentId;
        da.SelectCommand.Parameters.Add("@intBlogId", SqlDbType.Int).Value              = objBlog.intBlogId;
        da.SelectCommand.Parameters.Add("@strComment", SqlDbType.VarChar, 1000).Value   = objBlog.strComment;
        da.SelectCommand.Parameters.Add("@intAddedBy", SqlDbType.Int).Value             = objBlog.intAddedBy;
        da.SelectCommand.Parameters.Add("@strIPAddress", SqlDbType.VarChar, 20).Value   = objBlog.strIPAddress;
        da.SelectCommand.Parameters.Add("@intModifiedBy", SqlDbType.VarChar, 200).Value = objBlog.intModifiedBy;
        da.Fill(dt);
        co.CloseConnection(conn);
        return(dt);
    }