Files
Musify/Application/Tracks/Responses/TrackResponse.cs
T
2026-03-21 20:33:15 +01:00

20 lines
471 B
C#

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