コード例 #1
0
        //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));
        }
コード例 #2
0
        // GET: Admin/TypeEbook
        public ActionResult Index()
        {
            List <TypeEbook> listTypeEbook = _typeEbookService.GetAllTypeEbook();

            return(View(listTypeEbook));
        }