private object CreateLoanOffer(CreateLoanOffer model) { //"currency", "amount", "duration", "autoRenew" (0 or 1), and "lendingRate" var postData = new Dictionary <string, object> { { "currency", model.Currency }, { "amount", model.Amount.ToString(new CultureInfo("en-us")) }, { "lendingRate", model.LendingRate.ToString(new CultureInfo("en-us")) }, { "duration", 2 }, { "autoRenew", 0 } }; return(PostData <object>("createLoanOffer", postData)); }
public Task <object> CreateLoanOfferAsync(CreateLoanOffer model) { return(Task <object> .Factory.StartNew(() => CreateLoanOffer(model))); }