Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 9c265d3

Browse files
committed
Updated code snippet to avoid writing it in console.
1 parent a9859ee commit 9c265d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/eShopOnBlazor/Pages/Catalog/Delete.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030

3131
<dd>
3232
@{
33-
Console.WriteLine(_item.CatalogBrand != null ? _item.CatalogBrand.Brand : String.Empty);
33+
string catalogBrandName = _item.CatalogBrand != null ? _item.CatalogBrand.Brand : String.Empty;
3434
}
35+
@catalogBrandName
3536
</dd>
3637

3738
<dt>
@@ -40,8 +41,9 @@
4041

4142
<dd>
4243
@{
43-
Console.WriteLine(_item.CatalogType != null ? _item.CatalogType.Type : String.Empty);
44+
string catalogTypeName = _item.CatalogType != null ? _item.CatalogType.Type : String.Empty;
4445
}
46+
@catalogTypeName
4547
</dd>
4648
<dt>
4749
Price

0 commit comments

Comments
 (0)