Skip to content

Commit f11172a

Browse files
committed
Added Hero model in C# code
1 parent a5530e4 commit f11172a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Blazor/Model/Hero.cs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace BlazorComponents.Model;
2+
3+
/// <summary>
4+
/// See "interface Hero" from Angular project.
5+
/// </summary>
6+
public record Hero(int id, string name);

Blazor/_Imports.razor

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
@using Microsoft.JSInterop
77
@using BlazorComponents
88
@using BlazorComponents.Components
9+
@using BlazorComponents.Model

0 commit comments

Comments
 (0)