/// <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())
            using (MRDataEntities _db = new MRDataEntities())
            {
                var createMovie = new tbl_Movie();
                createMovie = MovieManager.JsonToMovie(json, mappath);

                string guid;
                do
                {
                    guid = Guid.NewGuid().ToString("N").ToUpper();
                } while (_db.tbl_Movie.Where(p => p.movie_Id == guid).Count() != 0);
                createMovie.movie_Id         = guid;
                createMovie.movie_Create     = create;
                createMovie.movie_VisitCount = 0;
                if ((bool)_db.tbl_UserAccount.SingleOrDefault(u => u.user_Id == create).user_IsAdmin)
                {
                    createMovie.movie_Status = 2;
                }
                else
                {
                    createMovie.movie_Status = 0;
                }

                //_db.tbl_Movie.InsertOnSubmit(createMovie);
                //_db.SubmitChanges();
                //_db.SetMovieTime(guid);
                _db.tbl_Movie.Add(createMovie);
                _db.SaveChanges();

                return(createMovie.movie_Id);
            }
        }
        /// <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);
            }
        }