public List <Shoe> RemoveWhereNotInList(List <RemoveMe> removeMe) { var theList = SharedKernel.ShoeList(); theList.RemoveAll(x => !removeMe.Any(y => y.Brand == x.Brand && y.Category == x.Category)); return(theList); }
public List <Shoe> RemoveBrand(string brand) { var theList = SharedKernel.ShoeList(); theList.RemoveAll(x => x.Brand == brand); return(theList); }
public FilterListOnMultipleColumns() { _theList = SharedKernel.ShoeList(); }
public List <Shoe> GetTopNShoes(int n) { var theList = SharedKernel.ShoeList(); return(theList.Take(n).ToList()); }