public ActionResult ChiTietChuong(int id) { DbModelsNovelWeb context = new DbModelsNovelWeb(); Chuong chuong = context.Chuongs.FirstOrDefault(x => x.idChuong == id); return(PartialView(chuong)); }
public ActionResult DanhSachChuong(int id) { DbModelsNovelWeb context = new DbModelsNovelWeb(); List <Chuong> chuongs = context.Chuongs.ToList(); var q = from x in chuongs where x.idTruyen == id select x; return(PartialView(q)); }