Flip ITrackService/TrackManager to DTO output; TrackConverter is the sole entity<->DTO path across all consumers

This commit is contained in:
Daniel Harvey
2026-05-25 11:35:04 -04:00
parent 81fc87391b
commit 4351302a25
23 changed files with 156 additions and 156 deletions
@@ -1,4 +1,4 @@
using DeepDrftModels.Entities;
using DeepDrftModels.DTOs;
using DeepDrftPublic.Client.Services;
using Models.Common;
@@ -15,7 +15,7 @@ public class TracksViewModel
get => Page?.PageSize ?? 15;
set
{
if (Page == null) throw new Exception();
if (Page == null) return;
if (value != Page.PageSize)
{
Page.PageSize = value;
@@ -24,7 +24,7 @@ public class TracksViewModel
}
public string SortBy { get; set; } = string.Empty;
public bool IsDescending { get; set; } = false;
public PagedResult<TrackEntity>? Page { get; set; } = null;
public PagedResult<TrackDto>? Page { get; set; } = null;
public TracksViewModel(ITrackDataService trackData)
{