Browse Source

Update part-06.md

@Model.ProductName not valid. I think it should be @order.ProductName
pull/22709/head
Md.Sakhawat Ullah 1 year ago
committed by GitHub
parent
commit
1dcfaf74b4
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      docs/en/tutorials/modular-crm/part-06.md

2
docs/en/tutorials/modular-crm/part-06.md

@ -256,7 +256,7 @@ Let's see what we've changed:
* In the last line, we are converting the product list to a dictionary, where the key is `Guid Id` and the value is `string Name`. That way, we can easily find a product's name with its ID.
* Finally, we are mapping the orders to `OrderDto` objects and setting the product name by looking up the product ID in the dictionary.
Open the `Index.cshtml` file, and change the `@order.ProductId` part by `@Model.ProductName` to write the product name instead of the product ID. The final `Index.cshtml` content should be the following:
Open the `Index.cshtml` file, and change the `@order.ProductId` part by `@Order.ProductName` to write the product name instead of the product ID. The final `Index.cshtml` content should be the following:
````html
@page

Loading…
Cancel
Save