public ActionResult CapNhatChuong(int id) { DaoChuongTruyen chuongtruyen = new DaoChuongTruyen(); ViewBag.LoaiTrang = chuongtruyen.GetLoaiTrang(); ViewBag.MaLoaiTrang = 0; ViewBag.Id = chuongtruyen.GetMaTruyen(id); return(PartialView(chuongtruyen.GetChuongTruyenModel(id))); }
public ActionResult CapNhatTrang(int id) { DaoChuongTruyen chuongtruyen = new DaoChuongTruyen(); ViewBag.LoaiTrang11 = chuongtruyen.GetLoaiTrang(); DAO.DaoTrangTruyen trangtruyens = new DAO.DaoTrangTruyen(); ViewBag.TenChuong = data.ChuongTruyens.SingleOrDefault(m => m.MaChuongTruyen == id).TenChuongTruyen; ViewBag.id = id; ViewBag.MaTruyen = chuongtruyen.GetMaTruyen(id); return(PartialView(trangtruyens.GetTrangTruyen(id, 2))); }