private async Task SendOTP()
        {
            if (!IsRemoveCoupon)
            {
                var popup = new EntryPopUp("Coupon Code", string.Empty, "OK", "Cancel");
                popup.PopupClosed += async(o, closedArgs) =>
                {
                    if (closedArgs.Button == "OK" && closedArgs.Text.Length > 0)
                    {
                        var Wait = UserDialogs.Instance.Loading("Wait...", Cancel(), "Cancel", true, MaskType.Black);
                        Wait.Show();
                        var coupon = new CouponModel()
                        {
                            CouponCode         = closedArgs.Text,
                            CreatedDate        = System.DateTime.Now.ToString("yyyy/MM/dd"),
                            CurrentFranchiseId = Application.Current.Properties["OtherId"].ToString(),
                            CurrentOrderAmount = FranchiseSell_Class_Data_List.Total_Amount.ToString(),
                            CustomerId         = FranchiseSell_Class_Data_List.Customer_Id.ToString()
                        };
                        JObject result = await _IAllDataServices.CheckCouponCode(coupon);

                        if (result != null)
                        {
                            string type = result["Type"].ToString();
                            if (type == "1")
                            {
                                await App.Current.MainPage.DisplayAlert((string)result["ResponseMessage"], (string)result["Result"]["returnMessage"], "Ok");

                                IsRemoveCoupon = true;
                                FranchiseSell_Class_Data_List.CouponCode       = coupon.CouponCode;
                                FranchiseSell_Class_Data_List.CouponCodeAmount = Convert.ToDecimal((string)result["Result"]["DiscountAmount"]);
                                NetPayble = FranchiseSell_Class_Data_List.Total_Amount - FranchiseSell_Class_Data_List.CouponCodeAmount;
                            }
                            else
                            {
                                await App.Current.MainPage.DisplayAlert((string)result["ResponseMessage"], (string)result["Result"]["returnMessage"], "Ok");
                            }
                        }
                        Wait.Hide();
                    }
                };

                popup.Show();
            }
            else
            {
                NetPayble = FranchiseSell_Class_Data_List.Total_Amount + FranchiseSell_Class_Data_List.CouponCodeAmount;
                FranchiseSell_Class_Data_List.CouponCodeAmount = 0;
                IsRemoveCoupon = false;
            }

            // var dialog = UserDialogs.Instance.Login(new LoginConfig() {a })
            //    var Wait = UserDialogs.Instance.Loading("Wait...", Cancel(), "Cancel", true, MaskType.Black);
            //    Wait.Show();
            //    if (HasErrors)
            //    {
            //        ScrollToControlProperty(GetFirstInvalidPropertyName);
            //    }
            //    else
            //    {
            //        if (FranchiseSell_Class_Data_List.FranchiseSellDetails_Class_List.Count > 0)
            //        {

            //            JObject result = await _IAllDataServices.SendOTPCustomer(FranchiseSell_Class_Data_List.Customer_Class_Data);

            //            if (result != null)
            //            {
            //                string type = result["Type"].ToString();
            //                if (type == "1")
            //                {
            //                    await App.Current.MainPage.DisplayAlert("Success!", (string)result["ResponseMessage"], "Ok");
            //                    _Resived_OTP = (string)result["Result"];

            //                    _Button_Send_OTP_Visible = false;
            //                    After_Send_OTP_Command = true;

            //                }
            //                else
            //                {
            //                    await App.Current.MainPage.DisplayAlert("Error!", (string)result["ResponseMessage"], "Ok");

            //                }
            //            }
            //            else
            //            {
            //                await App.Current.MainPage.DisplayAlert("Oops!", "Please  try Again....", "Ok");
            //            }


            //        }
            //        else
            //        {
            //            await App.Current.MainPage.DisplayAlert("Oops!", "Please Fill Qty Then Send OTP", "Ok");
            //        }
            //    }

            //    Wait.Dispose();
        }