public async Task <IActionResult> GetAll([FromQuery] bool includeNonTradable = false) { var assets = (await _assetService.GetAllAsync(includeNonTradable)) .Select(Mapper.Map <Asset>); return(Ok(assets)); }
public async Task <IActionResult> GetAll() { var assets = await _assetService.GetAllAsync(false); return(Ok(assets.Select(AssetResponseModel.Create))); }