Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public async Task<int> CheckoutAsync(string username, CheckoutDto checkoutDto)
var orderItems = cart.CartItems.Select(item =>
{
var title = books.TryGetValue(item.ISBN, out var b) ? b.Title : item.ISBN;
return new CustomerOrderItem { ISBN = item.ISBN, OrderNum = 0, Quantity = item.Quantity, UnitPrice = item.UnitPrice};
return new CustomerOrderItem { ISBN = item.ISBN, OrderNum = 0, Quantity = item.Quantity, UnitPrice = item.UnitPrice, Title = title };
}).ToList();

// Create customer order with items and shipping address snapshot
Expand Down
Loading