Пример #1
0
        void UpdatePackagesForSelectedPage(PackagesForSelectedPageResult result)
        {
            pages.TotalItems = result.TotalPackages;
            pages.TotalItemsOnSelectedPage = result.TotalPackagesOnPage;
            TotalItems  = result.TotalPackages;
            allPackages = result.AllPackages;

            UpdatePackageViewModels(PrioritizePackages(result), result.Query.SearchCriteria);
        }
Пример #2
0
 IEnumerable <IPackage> PrioritizePackages(PackagesForSelectedPageResult result)
 {
     return(PrioritizePackages(result.Packages, result.Query.SearchCriteria));
 }
Пример #3
0
 bool IsCurrentQuery(PackagesForSelectedPageResult result)
 {
     return(packagesForSelectedPageQuery == result.Query);
 }