mirror of
https://github.com/PacktPublishing/Web-Development-with-Blazor-Second-Edition.git
synced 2026-04-05 22:35:37 +00:00
Updated model classes with attributes
This commit is contained in:
parent
3088165398
commit
e95110f33d
15 changed files with 18 additions and 1 deletions
|
|
@ -2,5 +2,6 @@
|
|||
public class Category
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
[Required]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,5 +2,6 @@
|
|||
public class Tag
|
||||
{
|
||||
public string? Id { get; set; }
|
||||
[Required]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue