public static async Task <BlockList> PlaceBlockOrder(this IAuctionApiClient apiClient, BlockOrderRequest blockOrder) { try { return(await apiClient.PostBlockOrderAsync(blockOrder)); } catch (ApiException exception) { throw ConstructApiException(exception); } }
public static void WriteBlockOrderRequest(BlockOrderRequest blockOrderRequest) { Console.WriteLine($"AuctionId: {blockOrderRequest.AuctionId}"); Console.WriteLine($"AreaCode: {blockOrderRequest.AreaCode}"); Console.WriteLine($"Portfolio: {blockOrderRequest.Portfolio}"); Console.WriteLine("Blocks:"); foreach (var block in blockOrderRequest.Blocks) { WriteBlock(block); } }