コード例 #1
0
        public List <PackageContainer> LoadList(string sortOrder, string searchString)
        {
            IQueryable <PackageContainer> queryPcs = dummyPCs.AsQueryable();

            queryPcs = PCLogic.FilterPCs(queryPcs, searchString);
            return(SortList(queryPcs.ToList(), sortOrder));
        }
コード例 #2
0
        public override List <PackageContainer> LoadList(string sortOrder, string searchString)
        {
            IQueryable <PackageContainer> containers = Db.PackageContainer
                                                       .Include(x => x.MetricModelStage);


            containers = PCLogic.FilterPCs(containers, searchString);
            return(SortList(containers.ToList(), sortOrder));
        }
コード例 #3
0
 public List <PackageContainer> SortList(List <PackageContainer> containers, string sortOrder)
 {
     return(PCLogic.SortPCs(containers, sortOrder));
 }
コード例 #4
0
 public List <PackageContainer> SortList(List <PackageContainer> pcs, string sortOrder)
 {
     return(pcs = PCLogic.SortPCs(pcs, sortOrder));
 }