/// <summary>
        /// 通过json创建影人
        /// </summary>
        /// <param name="json">json</param>
        /// <param name="mappath">影人海报保存地址</param>
        /// <param name="create">影人创建者</param>
        /// <returns></returns>
        public static string CreateJson(JObject json, string mappath, string create)
        {
            using (MR_DataClassesDataContext _db = new MR_DataClassesDataContext())
            {
                var createCeleb = new tbl_Celebrity();
                createCeleb = CelebManager.JsonToCeleb(json, mappath);

                string guid;
                do
                {
                    guid = Guid.NewGuid().ToString("N").ToUpper();
                } while (_db.tbl_Celebrity.Where(p => p.celeb_Id == guid).Count() != 0);
                createCeleb.celeb_Id     = guid;
                createCeleb.celeb_Create = create;
                if ((bool)_db.tbl_UserAccount.SingleOrDefault(u => u.user_Id == create).user_IsAdmin)
                {
                    createCeleb.celeb_Status = 2;
                }
                else
                {
                    createCeleb.celeb_Status = 0;
                }

                _db.tbl_Celebrity.InsertOnSubmit(createCeleb);
                _db.SubmitChanges();
                _db.SetCelebTime(guid);

                if (!string.IsNullOrEmpty(createCeleb.celeb_DoubanID))
                {
                    MovieManager.RefreshCeleb(createCeleb.celeb_Id, createCeleb.celeb_DoubanID);
                }

                return(createCeleb.celeb_Id);
            }
        }
        /// <summary>
        /// 创建影人
        /// </summary>
        /// <param name="celeb"></param>
        /// <returns></returns>
        public static string CreateCeleb(ManageCelebViewModel celeb)
        {
            using (MR_DataClassesDataContext _db = new MR_DataClassesDataContext())
            {
                string guid;
                do
                {
                    guid = Guid.NewGuid().ToString("N").ToUpper();
                } while (_db.tbl_Celebrity.Where(p => p.celeb_Id == guid).Count() != 0);
                celeb.Gender = Translator.GenderToId(celeb.Gender);

                var createCeleb = new tbl_Celebrity()
                {
                    celeb_Id        = guid,
                    celeb_Name      = celeb.Name,
                    celeb_NameEn    = celeb.NameEn,
                    celeb_Aka       = celeb.Aka,
                    celeb_AkaEn     = celeb.AkaEn,
                    celeb_Gender    = celeb.Gender,
                    celeb_Birthday  = celeb.Birthday,
                    celeb_Deathday  = celeb.Deathday,
                    celeb_BornPlace = celeb.BornPlace,
                    celeb_Pro       = celeb.Pro,
                    celeb_Family    = celeb.Family,
                    celeb_Summary   = celeb.Summary,
                    celeb_DoubanID  = celeb.DoubanID,
                    celeb_IMDbID    = celeb.IMDbID,
                    celeb_Create    = celeb.Create,
                    celeb_Status    = celeb.Status,
                    celeb_Avatar    = celeb.Avatar == null ? "Celeb_1.jpg" : celeb.Avatar
                };
                _db.tbl_Celebrity.InsertOnSubmit(createCeleb);
                _db.SubmitChanges();
                _db.SetCelebTime(guid);

                return(createCeleb.celeb_Id);
            }
        }