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 })); }
private ExchangeExtPriceSettings Convert(ExchangeExtPriceSettingsModel settings) { return(_convertService.Convert <ExchangeExtPriceSettingsModel, ExchangeExtPriceSettings>(settings, o => o.ConfigureMap(MemberList.Destination))); }