public Comic_detail(int id, string name, int coid) { a = cm.FindComic(id); ca = a.Comic_chapter; co = a.Comment.OrderByDescending(o => o.Comment_time).ToPagedList(coid, 4); ac = cm.FindTop(4); ur = us.Findname(name); su = sm.Findsu(ur.User_id); fol = a.Follow.Where(o => o.User_id == ur.User_id).FirstOrDefault(); }
public ActionResult Add_Comic(int coid) { var da = cm.FindComic(coid); int ccid = da.Comic_chapter.Where(o => o.Comic_chapter_num == 1).FirstOrDefault().Comic_chapter_id; int uid = Convert.ToInt32(Session["User_id"].ToString()); SubscribeManager sm = new SubscribeManager(); sm.Add_Comic(coid, uid); return(RedirectToAction("Comic_pager", "Comic", new { cid = ccid })); }