private void PerformSearch(string text)
        {
            if (text.Length >= 4)
            {
                IsBusy = true;

                FilteredCustomers = AllCustomerList.Where(x => x.CardName.Contains(text.ToUpper())).OrderBy(x => x.CardName);

                var pageCount = FilteredCustomers.Count() / 20;
                if (FilteredCustomers.Count() % 20 != 0)
                {
                    pageCount = pageCount + 1;
                }
                TotalPageCount = pageCount;

                CurrentPageIndex = 1;

                RefreshCustomerData(FilteredCustomers);

                IsBusy = false;
            }
            else if (text.Length == 0)
            {
                IsBusy = true;

                CustomerCollection.Clear();
                FilteredCustomers = AllCustomerList;
                RefreshCustomerData(AllCustomerList);

                IsBusy = false;
            }
        }
        private async void Init()
        {
            if (IsNetworkConnected)
            {
                IsBusy = true;

                var customerResult = await _customerService.GetCustomerListAsync();

                AllCustomerList = customerResult.Data;

                //Temp Storage
                if (Application.Current.Properties.ContainsKey("CustomerData"))
                {
                    var list = Application.Current.Properties["CustomerData"] as List <CustomerData>;
                    AllCustomerList.AddRange(list);
                }

                FilteredCustomers = AllCustomerList;
                CurrentPageIndex  = 1;
                RefreshCustomerData(FilteredCustomers);

                IsBusy = false;
            }
            else
            {
                await _customDialogService.ShowMessageDialogAsync("Internet Bağlantınız Bulunamamıştır..");

                return;
            }
        }
        void CloseDialogCallback(IDialogResult dialogResult)
        {
            var isSaveSuccess = dialogResult.Parameters.GetValue <bool>("Result");

            if (isSaveSuccess)
            {
                IsBusy = true;
                CustomerData customerData = new CustomerData();
                customerData     = dialogResult.Parameters.GetValue <CustomerData>("Model");
                CurrentPageIndex = 1;
                AllCustomerList.Add(customerData);
                RefreshCustomerData(AllCustomerList);
                IsBusy = false;
            }
        }