Renames
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Musify.Domain.Entities;
|
||||
|
||||
namespace Musify.Application.Tracks.Responses
|
||||
{
|
||||
public record TrackApplicationResponse(
|
||||
Guid Id,
|
||||
string Title,
|
||||
DateTime CreatedDate,
|
||||
DateTime UpdatedDate)
|
||||
{
|
||||
public static TrackApplicationResponse FromEntity(Track track)
|
||||
{
|
||||
return new TrackApplicationResponse(
|
||||
track.Id,
|
||||
track.Title,
|
||||
track.CreatedDate,
|
||||
track.UpdatedDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user