public bool checklv_bool(Model_PostSeo posttype_postseo, Model_PostSeo tax_postseo, Model_PostSeo post_postseo, string prop)
    {
        bool         ret   = false;
        PropertyInfo ppost = (post_postseo != null ? post_postseo.GetType().GetProperty(prop) : null);
        PropertyInfo ptax  = (tax_postseo != null ? tax_postseo.GetType().GetProperty(prop) : null);
        PropertyInfo ppt   = (posttype_postseo != null ? posttype_postseo.GetType().GetProperty(prop) : null);

        var strppost = (ppost != null ? ppost.GetValue(post_postseo, null) : null);
        var strptax  = (ptax != null ? ptax.GetValue(tax_postseo, null) : null);
        var strppt   = (ppt != null ? ppt.GetValue(posttype_postseo, null) : null);

        if (post_postseo != null && ppost != null && strppost != null)
        {
            ret = (bool)strppost;
            //ret = string.IsNullOrEmpty(ret) ? "" : (string)ret;
        }
        else
        {
            if (tax_postseo != null && ptax != null && strptax != null)
            {
                ret = (bool)strptax;
                //ret = string.IsNullOrEmpty(ret) ? "" : (string)ret;
            }
            else
            {
                if (posttype_postseo != null && ppt != null && strppt != null)
                {
                    ret = (bool)strppt;
                    //ret = string.IsNullOrEmpty(ret) ? "" : (string)ret;
                }
            }
        }

        return(ret);
    }
    public string checklv(Model_PostSeo posttype_postseo, Model_PostSeo tax_postseo, Model_PostSeo post_postseo, string prop)
    {
        string       ret   = string.Empty;
        PropertyInfo ppost = (post_postseo != null? post_postseo.GetType().GetProperty(prop) : null);
        PropertyInfo ptax  = (tax_postseo != null ? tax_postseo.GetType().GetProperty(prop) : null);
        PropertyInfo ppt   = (posttype_postseo != null? posttype_postseo.GetType().GetProperty(prop) : null);

        string strppost = (string)(ppost != null ? ppost.GetValue(post_postseo, null) : null);
        string strptax  = (string)(ptax != null ? ptax.GetValue(tax_postseo, null) : null);
        string strppt   = (string)(ppt != null ? ppt.GetValue(posttype_postseo, null) : null);

        if (post_postseo != null && ppost != null && !string.IsNullOrEmpty(strppost))
        {
            ret = (string)strppost;
            //ret = string.IsNullOrEmpty(ret) ? "" : (string)ret;
        }
        else
        {
            if (tax_postseo != null && ptax != null && !string.IsNullOrEmpty(strptax))
            {
                ret = (string)strptax;
                //ret = string.IsNullOrEmpty(ret) ? "" : (string)ret;
            }
            else
            {
                if (posttype_postseo != null && ppt != null && !string.IsNullOrEmpty(strppt))
                {
                    string temp = (string)strppt;

                    if (this.TaxForPostType != null)
                    {
                        temp = this.TaxForPostType.Title + " โรงแรม - " + temp;
                    }

                    if (this.PostDataUI != null)
                    {
                        temp = this.PostDataUI.Title + " โรงแรม - " + temp;
                    }


                    ret = temp;
                    //ret = string.IsNullOrEmpty(ret) ? "" : (string)ret;
                }
            }
        }

        return(ret);
    }