Add ToString Overriddes

This commit is contained in:
2025-05-09 12:22:32 +02:00
parent 2d69b30e83
commit b49b11828c
7 changed files with 62 additions and 8 deletions

View File

@ -12,4 +12,9 @@ public class Author(string authorName)
[StringLength(128)]
[Required]
public string AuthorName { get; init; } = authorName;
public override string ToString()
{
return $"{AuthorId} {AuthorName}";
}
}