protected void Page_Load(object sender, EventArgs e) { int bookid = Convert.ToInt32(Request.QueryString["BookId"]); int sectionId = Convert.ToInt32(Request.QueryString["sectionId"]); string BookNmae = Request.QueryString["BookName"].ToString(); IDAL.INovel novel = BllFactory.BllAccess.CreateINovelBLL(); Model.BooksInfo item = novel.getBookCoverInfo(bookid); IDAL.IAuthor ia = BllFactory.BllAccess.CreateIAuthorBLL(); int count = ia.SectionCheckYES(sectionId, bookid, item.BookName); if (count > 0) { Response.Write("{success:true,msg:'操作成功'}"); } else { Response.Write("{success:false,msg:'操作失败'}"); } }
//章节审核通过 public int SectionCheckYES(int sectionId, int bookId, string bookName) { return(IA.SectionCheckYES(sectionId, bookId, bookName)); }