コード例 #1
0
        internal async Task <CreditAppSubmissionResult> SubmitCreditApp()
        {
            _hudProvider.DisplayProgress("Submitting Credit App");

            _creditAppBuilder.SetGuarantor(new Guarantor
            {
                FirstName     = FirstName,
                MiddleInitial = MiddleInitial,
                LastName      = LastName,
                Address       = Address,
                City          = City,
                State         = State,
                Zip           = Zip
            });

            try
            {
                return(await _creditAppBuilder.SubmitCreditApp());
            }
            catch (Exception ex)
            {
                return(CreditAppSubmissionResult.Failure); //tell view to pop alert
            }
            finally
            {
                _hudProvider.Dismiss();
            }
        }
コード例 #2
0
        internal async Task <CreditAppSubmissionResult> SubmitCreditApp(bool guarantorSectionOn = false)
        {
            _hudProvider.DisplayProgress("Submitting Credit App");

            if (!guarantorSectionOn)
            {
                _creditAppBuilder.SetGuarantor(new Guarantor()); //do this so that the guarantor fields aren't null (causes service error)
            }

            try
            {
                return(await _creditAppBuilder.SubmitCreditApp());
            }
            catch (Exception ex)
            {
                return(CreditAppSubmissionResult.Failure); //tell view to pop alert
            }
            finally
            {
                _hudProvider.Dismiss();
            }
        }