refactor(public): in-process ITrackDataService on server prerender; HTTP on WASM
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
using DeepDrftModels.Entities;
|
||||
using DeepDrftPublic.Client.Clients;
|
||||
using DeepDrftModels.Entities;
|
||||
using DeepDrftPublic.Client.Services;
|
||||
using Models.Common;
|
||||
|
||||
namespace DeepDrftPublic.Client.ViewModels;
|
||||
|
||||
public class TracksViewModel
|
||||
{
|
||||
public TrackClient TrackClient { get; }
|
||||
public ITrackDataService TrackData { get; }
|
||||
|
||||
// private int _pageNumber = 1;
|
||||
public int PageNumber { get; set; } = 1;
|
||||
|
||||
public int PageSize
|
||||
@@ -26,9 +25,9 @@ public class TracksViewModel
|
||||
public string SortBy { get; set; } = string.Empty;
|
||||
public bool IsDescending { get; set; } = false;
|
||||
public PagedResult<TrackEntity>? Page { get; set; } = null;
|
||||
|
||||
public TracksViewModel(TrackClient trackClient)
|
||||
|
||||
public TracksViewModel(ITrackDataService trackData)
|
||||
{
|
||||
TrackClient = trackClient;
|
||||
TrackData = trackData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user