protected override void ActionAdminDo() { int ID = Convert.ToInt32(Request["ID"]); BannerManager BM = new BannerManager(); BannerTBx banner = BM.GetByID(ID); if (banner.ID == 0) { Response.Write("banner not exist!"); return; } banner.Status = -1; BM.Save(); Response.Write(1); }
protected override void ActionAdminDo() { int ID = Convert.ToInt32(Request["id"]); string name = Request["name"]; string title = Request["title"]; BannerManager BM = new BannerManager(); BannerTBx banner = BM.GetByID(ID); if (banner.ID == 0) { Response.Write("banner not exist!"); return; } banner.Name = name; banner.TitleBN = title; BM.Save(); Response.Write(1); }