private async void cmdOk_Clicked(object sender, EventArgs e)
        {
            try
            {
                gridProgress.IsVisible = true;
                await Task.Run(async() =>
                {
                    Proxies.DCEMVDemoServerClient client = SessionSingleton.GenDCEMVServerApiClient();
                    using (SessionSingleton.HttpClient)
                    {
                        account.CustomerType = MapPickerValue();
                        switch (account.CustomerType)
                        {
                        case CustomerType.Individual:
                            await client.AccountUpdateindividualaccountdetailsPostAsync(account.ToJsonString());

                            SessionSingleton.Account.AccountState = 0;
                            SessionSingleton.Account.CustomerType = account.CustomerType;
                            SessionSingleton.Account.FirstName    = account.FirstName;
                            SessionSingleton.Account.LastName     = account.LastName;
                            break;

                        case CustomerType.Business:
                            await client.AccountUpdatebusinessaccountdetailsPostAsync(account.ToJsonString());

                            SessionSingleton.Account.AccountState     = 0;
                            SessionSingleton.Account.CustomerType     = account.CustomerType;
                            SessionSingleton.Account.BusinessName     = account.BusinessName;
                            SessionSingleton.Account.CompanyRegNumber = account.CompanyRegNumber;
                            SessionSingleton.Account.TaxNumber        = account.TaxNumber;
                            break;
                        }
                    }
                    ClosePage();
                });
            }
            catch (Exception ex)
            {
                await App.Current.MainPage.DisplayAlert("Error", ex.Message, "OK");
            }
            finally
            {
                gridProgress.IsVisible = false;
            }
        }