Пример #1
0
        private void ValidateAite()
        {
            PerformAction(async() =>
            {
                var timer = new Stopwatch();
                timer.Restart();

                try
                {
                    _aiteValidate = await _checkoutBusinessLogic.ValidateAITE(CardNumber,
                                                                              BarCode, _isCardNumberEntered);
                    ProcessAite();
                }
                catch (Exception)
                {
                    ReInitialize();
                    throw;
                }
                finally
                {
                    timer.Stop();
                    Log.Info(string.Format("Time taken in Validate Aite is {0}ms ", timer.ElapsedMilliseconds));
                }
            });
        }
Пример #2
0
 private void VaidateGstPst()
 {
     if (!string.IsNullOrEmpty(TreatyNumber))
     {
         PerformAction(async() =>
         {
             PopupService.IsGstPstPopupOpen = false;
             PopupService.IsPopupOpen       = false;
             _aiteValidate = await _checkoutBusinessLogic.GstPstTaxExempt(TreatyNumber);
             ProcessAite();
             NavigateService.Instance.NavigateToSaleSummary();
             MessengerInstance.Send(new CloseKeyboardMessage());
             MessengerInstance.Send(_checkoutSummary);
         });
     }
 }