public static List <MediaObject> DataTableTpObj(DataTable dtAllData)
        {
            List <MediaObject> lstAllData = new List <MediaObject>();

            if (dtAllData != null && dtAllData.Rows.Count > 0)
            {
                var allRow = dtAllData.Rows;
                foreach (DataRow row in allRow)
                {
                    MediaObject objData = new MediaObject();
                    objData.News_ID     = row["News_ID"] == DBNull.Value ? 0 : Convert.ToDouble(row["News_ID"]);
                    objData.Object_ID   = row["Object_ID"] == DBNull.Value ? 0 : Convert.ToInt32(row["Object_ID"]);
                    objData.Object_Type = row["Object_Type"] == DBNull.Value ? 0 : Convert.ToInt32(row["Object_Type"]);
                    objData.Object_Url  = row["Object_Url"] == DBNull.Value ? string.Empty : row["Object_Url"].ToString();
                    objData.Object_Note = row["Object_Note"] == DBNull.Value ? string.Empty : row["Object_Note"].ToString();
                    objData.UserID      = row["UserID"] == DBNull.Value ? string.Empty : row["UserID"].ToString();
                    objData.STT         = row["STT"] == DBNull.Value ? 0 : Convert.ToInt32(row["STT"]);
                    //  objData.News_Title = row["News_Title"] == DBNull.Value ? string.Empty : row["News_Title"].ToString();
                    objData.galleryID = (int)(row["GalleryID"] == DBNull.Value ? 0 : row["GalleryID"]);
                    lstAllData.Add(objData);
                }
            }
            return(lstAllData);
        }