Updated model classes with attributes

This commit is contained in:
Jimmy Engström 2023-02-17 18:05:56 +01:00
parent 3088165398
commit e95110f33d
15 changed files with 18 additions and 1 deletions

View file

@ -2,5 +2,6 @@
public class Category
{
public string? Id { get; set; }
[Required]
public string Name { get; set; } = string.Empty;
}

View file

@ -2,5 +2,6 @@
public class Tag
{
public string? Id { get; set; }
[Required]
public string Name { get; set; } = string.Empty;
}