Beispiel #1
0
        public async Task <IActionResult> GetListByCatId(Guid cid)
        {
            var apiMsg = await ApiMessage.Wrap(async() =>
            {
                return(await contentBusiness.GetContentListByCategoryId(cid));
            });

            return(Json(apiMsg));
        }
Beispiel #2
0
        public async Task OnGet(Guid pid, int skipCount = 0, int pageSize = 20)
        {
            var category = await contentBusiness.GetCategoryById(pid);

            CategoryName = category?.Category?.Name;
            var result = await contentBusiness.GetContentListByCategoryId(pid);

            ContentEntryList = result.OrderBy(x => x.Order).ToList();
        }
Beispiel #3
0
        public async Task <IActionResult> BookDetail(Guid Id)
        {
            ViewData["DataModel"] = await contentBusiness.GetContentListByCategoryId(Id);

            return(View());
        }