public async Task <IActionResult> GetAllProductWeb(string keyword, int pageSize, int pageIndex = 1)
        {
            if (pageSize == 0)
            {
                pageSize = 3;
            }
            var request = new PageRequest()
            {
                PageIndex = pageIndex,
                PageSize  = pageSize,
                Keyword   = keyword,
            };
            var productList = new ProductListViewModel();

            var listproduct = await _productConnectAPI.GetAllProductPaging(request);

            productList.ListProduct = listproduct;
            return(View(productList));
        }
        public async Task <IActionResult> GetAllProductPaging(string keyword, int pageIndex, int pageSize)
        {
            var request = new PageRequest()
            {
                PageIndex = pageIndex,
                PageSize  = pageSize,
                Keyword   = keyword
            };
            var listproductpaging = await _productConnectAPI.GetAllProductPaging(request);

            return(new OkObjectResult(listproductpaging));
        }
        public async Task <IActionResult> GetAllProduct(string keyword, int pageIndex = 1, int pageSize = 7)
        {
            var request = new PageRequest()
            {
                PageIndex = pageIndex,
                PageSize  = pageSize,
                Keyword   = keyword,
            };
            var listproduct = await _productConnectAPI.GetAllProductPaging(request);

            return(View(listproduct));
        }