protected void Page_Load(object sender, EventArgs e) { int bookid = Convert.ToInt32(Request["bookid"]); IDAL.IAuthor ia = BllFactory.BllAccess.CreateIAuthorBLL(); int count = ia.delbook(bookid); if (count > 0) { Response.Write("{success:true,msg:'删除成功'}"); } else { Response.Write("{success:false,msg:'删除失败'}"); } }
//删除一本小说 public int delbook(int bookid) { IDAL.IAuthor ia = DalFactory.DateAccess.CreateIAuthor(); return(ia.delbook(bookid)); }