Files
novelly/src/Novelly.Api/Genres/GenreContracts.cs
T
James Wampler 27c287b9c8 Add genre feature; extract ConfirmModal for reusable confirm dialogs
Genres seed on boot, are editable per project, and gate agent config
errors more gracefully. ConfirmModal replaces ad-hoc confirm prompts
across chapters, tags, and characters pages.
2026-08-15 11:25:13 -07:00

9 lines
199 B
C#

namespace Novelly.Api.Genres;
public record GenreResponse(Guid Id, string Name);
public static class GenreMapping
{
public static GenreResponse ToResponse(this Genre g) => new(g.Id, g.Name);
}