示例#1
0
        public override List <Variant> LoadList(string sortOrder, string searchString)
        {
            IQueryable <Variant> variants = Db.Variants;

            variants = VariantLogic.FilterVariants(variants, searchString);
            return(SortList(variants.ToList(), sortOrder));
        }
示例#2
0
        public List <Variant> LoadList(string sortOrder, string searchString = "")
        {
            IQueryable <Variant> queryVariants = dummyVariants.AsQueryable();

            queryVariants = VariantLogic.FilterVariants(queryVariants, searchString);
            return(SortList(queryVariants.ToList(), sortOrder));
        }
示例#3
0
 public List <Variant> SortList(List <Variant> variants, string sortOrder)
 {
     return(VariantLogic.SortVariants(variants, sortOrder));
 }