/// <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(); }
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); }