public DislikedRepositoriesViewModel(IApplicationService applicationService) { this.WhenActivated(d => { var repos = applicationService.Account.StumbledRepositories.Query .Where(x => x.Liked == false) .OrderByDescending(x => x.CreatedAt); RepositoryCollection.Reset(repos); }); }
public HistoryViewModel(IApplicationService applicationService) { ApplicationService = applicationService; RepositoryCollection.Reset(ApplicationService.Account.StumbledRepositories.Query.OrderByDescending(x => x.CreatedAt)); }