예제 #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));
 }