Skip to content

Commit

Permalink
Added Hero model in C# code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenoage committed Nov 8, 2023
1 parent a5530e4 commit f11172a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Blazor/Model/Hero.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace BlazorComponents.Model;

/// <summary>
/// See "interface Hero" from Angular project.
/// </summary>
public record Hero(int id, string name);
1 change: 1 addition & 0 deletions Blazor/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
@using Microsoft.JSInterop
@using BlazorComponents
@using BlazorComponents.Components
@using BlazorComponents.Model

0 comments on commit f11172a

Please sign in to comment.