Example #1
0
        private async Task <ProductList> LoadProductList(string searchText, int pageNumber)
        {
            var result = new ProductList();

            try
            {
                result = await _productApiService.GetProductList(searchText, pageNumber);
            }
            catch (Exception)
            {
                await _dialogService.ShowDialog(AppConstant.TRY_AGAIN, AppConstant.TITLE, AppConstant.OKMESSAGE);
            }
            finally
            {
            }
            return(result);
        }