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