Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RepaymentOptions"/> class.
 /// </summary>
 public RepaymentOptions()
 {
     FasterRepayment   = new FasterRepayment();
     LowerPayments     = new LowerPayment();
     Deferment         = new Deferment();
     StandardRepayment = new StandardRepayment();
 }
Ejemplo n.º 2
0
        public LowerPayment PostLowerPaymentOptions(LowerPayment lowerPayment)
        {
            var lessonUserId = GetUserLessonId();

            if (!lessonUserId.HasValue)
            {
                return(lowerPayment);
            }

            lock (_lockObject)
            {
                SaltServiceAgent.PostLesson3(new Lesson3()
                {
                    LowerPaymentOptions = new List <LowerPayment>()
                    {
                        lowerPayment
                    },
                    User = new User()
                    {
                        UserId = lessonUserId.Value
                    }
                }.ToDataContract());
            }

            return(lowerPayment);
        }