Esempio n. 1
0
 public IActionResult Update([NotNull][FromBody] ExchangeExtPriceSettingsModel model)
 {
     if (model == null)
     {
         throw new ArgumentNullException(nameof(model));
     }
     _extPricesSettingsService.Update(model.AssetPairId, model.ExchangeName, Convert(model),
                                      "settings was manually changed");
     return(Ok(new { success = true }));
 }
Esempio n. 2
0
 private ExchangeExtPriceSettings Convert(ExchangeExtPriceSettingsModel settings)
 {
     return(_convertService.Convert <ExchangeExtPriceSettingsModel, ExchangeExtPriceSettings>(settings, o => o.ConfigureMap(MemberList.Destination)));
 }