public static List <Inventory> GetTakenItems(InventoryDBContext dbContext) { return(dbContext.Inventory.Where(item => item.IsDeleted == true).ToList()); }
public static List <Inventory> GetExpiredItems(InventoryDBContext dbContext, DateTime dateToCompare) { return(dbContext.Inventory.Where(item => item.ExpirationDate.CompareTo(dateToCompare) == -1).ToList()); }