//Lấy danh sách ebook hỗ trợ public ActionResult GetAllListTypeEbook() { var listTypeEbook = _typeEbookService.GetAllTypeEbook().Select(x => new { TypeEbookName = x.Name, TypeEbookID = x.TypeID }); return(Json(listTypeEbook, JsonRequestBehavior.AllowGet)); }
// GET: Admin/TypeEbook public ActionResult Index() { List <TypeEbook> listTypeEbook = _typeEbookService.GetAllTypeEbook(); return(View(listTypeEbook)); }