/// <summary> /// 百度 /// </summary> /// <param name="id"></param> protected void Baidu(int id) { DataEntities ent = new DataEntities(); MovieUrlBaidu b = (from l in ent.MovieUrlBaidu where l.id == id select l).FirstOrDefault(); ent.Dispose(); Response.Clear(); Response.Write(CreateDramapage(b, b.GetClass())); }
/// <summary> /// 生成百度影音剧集 /// </summary> /// <param name="id"></param> protected void CreateBaiduPage(long id) { DataEntities ent = new DataEntities(); MovieUrlBaidu b = (from l in ent.MovieUrlBaidu where l.id == id select l).FirstOrDefault(); if (b.id > 0) { Class c = b.GetClass(); Voodoo.Basement.CreatePage.CreateDramapage(b, c); Response.Write(string.Format("《{0}》-百度影音剧集《{1}》完成", b.MovieTitle, b.Title)); } else { Response.Write("不存在"); } ent.Dispose(); }