public static IEnumerable<ImportItem> Filter(IEnumerable<ImportItem> items, ImportResultStatus status) { return items.Where(x => x.ImportStatus == status).OrderBy(x => x.EntryDate); }
public static int Count(IEnumerable<ImportItem> items, ImportResultStatus status) { return items.Where(x => x.ImportStatus == status).Count(); }