mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-17 00:40:06 +01:00
20 lines
422 B
C#
20 lines
422 B
C#
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
|
|
};
|
|
}
|
|
}
|