public async Task <IActionResult> Index(string keyword, int pageIndex = 1, int pageSize = 5) { var languageId = HttpContext.Session.GetString(SystemConstants.AppSettings.DefaultLanguageId); var request = new GetManageProductCategoryPagingRequest() { Keyword = keyword, PageIndex = pageIndex, PageSize = pageSize, LanguageId = languageId }; var data = await _categoryApiClient.GetPagings(request); ViewBag.Keyword = keyword; var categories = await _categoryApiClient.GetAll(languageId); // if (TempData["result"] != null) // { // ViewBag.SuccessMsg = TempData["result"]; // } TempData["TotalCategorys"] = data.TotalRecords; return(View(data)); }