Example #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));
        }
Example #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));
        }
Example #3
0
 public List <Variant> SortList(List <Variant> variants, string sortOrder)
 {
     return(VariantLogic.SortVariants(variants, sortOrder));
 }