示例#1
0
        public IEnumerable <GetGridResult> GetGrid(GetGridParams par)
        {
            IEnumerable <GetGridResult> data = new[] {
                new GetGridResult {
                    Name = "ABC Accounting", Turnover = 50000
                },
                new GetGridResult {
                    Name = "Ezy Video Rental", Turnover = 106300
                },
                new GetGridResult {
                    Name = "Greens Fruit Grocery", Turnover = 120000
                },
                new GetGridResult {
                    Name = "Icecream Express", Turnover = 73000
                },
                new GetGridResult {
                    Name = "Ripped Gym", Turnover = 88400
                },
                new GetGridResult {
                    Name = "Smith Auto Mechanic", Turnover = 222980
                }
            };

            foreach (GetGridParams.SortInfo sortInfo in par.Sort)
            {
                data = sortInfo.Sort(data);
            }
            return(data);
        }
示例#2
0
 public IEnumerable<GetGridResult> GetGrid(GetGridParams par)
 {
     IEnumerable<GetGridResult> data = new[] {
         new GetGridResult {Name = "ABC Accounting", Turnover = 50000},
         new GetGridResult {Name = "Ezy Video Rental", Turnover = 106300},
         new GetGridResult {Name = "Greens Fruit Grocery", Turnover = 120000},
         new GetGridResult {Name = "Icecream Express", Turnover = 73000},
         new GetGridResult {Name = "Ripped Gym", Turnover = 88400},
         new GetGridResult {Name = "Smith Auto Mechanic", Turnover = 222980}
     };
     foreach (GetGridParams.SortInfo sortInfo in par.Sort)
     {
         data = sortInfo.Sort(data);
     }
     return data;
 }