public async Task <IActionResult> Add([FromBody] MarginAsset marginAsset) { marginAsset = Mapper.Map <MarginAsset>(await _marginAssetService.AddAsync(marginAsset)); return(Created ( uri: $"/api/v2/margin-assets/{marginAsset.Id}", value: marginAsset )); }
public async Task <IActionResult> Update([FromBody] MarginAsset assetCategory) { await _marginAssetService.UpdateAsync(assetCategory); return(NoContent()); }