mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 03:48:19 +02:00
17 lines
430 B
C#
17 lines
430 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.Controllers.DTOs;
|
|
|
|
/// <summary>
|
|
/// The <see cref="API.Schema.MangaContext.Author"/> DTO
|
|
/// </summary>
|
|
public record Author(string Key, string Name) : Identifiable(Key)
|
|
{
|
|
/// <summary>
|
|
/// Name of the Author.
|
|
/// </summary>
|
|
[Required]
|
|
[Description("Name of the Author.")]
|
|
public string Name { get; init; } = Name;
|
|
} |