public async Task <IActionResult> GetCategories() { var apiMsg = await ApiMessage.Wrap(async() => { return(await contentBusiness.GetTopCategory(string.Empty)); }); return(Json(apiMsg)); }
public async Task OnGet(Guid?cid) { if (cid != null) { var categoryResult = await contentBusiness.GetCategoryWithDetailById(cid.Value); Categories = categoryResult.Category; CategoryComments = categoryResult.CategoryComments; } else { await contentBusiness.GetTopCategory(""); } }
public async Task OnGet(string query, int skipCount = 0, int pageSize = 20) { var result = await contentBusiness.GetTopCategory(""); CategoryList = result.ToList(); }