public async Task <IActionResult> OnGet(int?qid = null) { Categories = await _categoryController.GetAsync(); if (qid != null) { return(await OnGetWithId(qid.Value, User)); } if (!string.IsNullOrEmpty(searchString) || !string.IsNullOrEmpty(Category)) { Articles = await _articleController.GetByLastAsync(searchString, Category); } else { Articles = await _articleController.GetAsync(); } return(Page()); }