Exemple #1
0
        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("");
            }
        }