Files
Musify/MusifyBackend/Application/Tracks/Responses/TrackApplicationResponse.cs
T
Admin 882c35d2fa chore: import MusifyBackend into monorepo (preserving history)
git-subtree-dir: MusifyBackend
git-subtree-mainline: 6829e769ed
git-subtree-split: ed7b00c2cc
2026-07-05 03:20:43 +02:00

20 lines
496 B
C#

using Musify.Domain.Entities;
namespace Musify.Application.Tracks.Responses
{
public record TrackApplicationResponse(
Guid Id,
string Title,
DateTime CreatedAt,
DateTime UpdatedAt)
{
public static TrackApplicationResponse FromEntity(Track track)
{
return new TrackApplicationResponse(
track.Id,
track.Title,
track.CreatedAt,
track.UpdatedAt);
}
}
}