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.
9 lines
199 B
C#
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);
|
|
}
|