Пример #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 }));
 }
Пример #2
0
 private ExchangeExtPriceSettings Convert(ExchangeExtPriceSettingsModel settings)
 {
     return(_convertService.Convert <ExchangeExtPriceSettingsModel, ExchangeExtPriceSettings>(settings, o => o.ConfigureMap(MemberList.Destination)));
 }