feat: basic category controller (create & retrieve)

This commit is contained in:
2025-07-18 11:09:27 +02:00
parent 0a6633316c
commit b20b7d9127
3 changed files with 136 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using QuotifyBE.DTOs;
using QuotifyBE.Entities;
namespace QuotifyBE.Mapping;
public static class CategoryMapping
{
public static CategoryShortDTO ToCategoryShortDTO(this Category category)
{
return new CategoryShortDTO
{
Id = category.Id,
Name = category.Name,
Description = category.Description,
CreatedAt = category.CreatedAt
};
}
}