public override List <Variant> LoadList(string sortOrder, string searchString) { IQueryable <Variant> variants = Db.Variants; variants = VariantLogic.FilterVariants(variants, searchString); return(SortList(variants.ToList(), sortOrder)); }
public List <Variant> LoadList(string sortOrder, string searchString = "") { IQueryable <Variant> queryVariants = dummyVariants.AsQueryable(); queryVariants = VariantLogic.FilterVariants(queryVariants, searchString); return(SortList(queryVariants.ToList(), sortOrder)); }
public List <Variant> SortList(List <Variant> variants, string sortOrder) { return(VariantLogic.SortVariants(variants, sortOrder)); }