Beispiel #1
0
 public void RemoveProductBatch(ProductBatch productBatch)
 {
     ProductBatches.RemoveAll(batch => batch.BatchId == productBatch.BatchId);
 }
Beispiel #2
0
 public void AddProductBatch(ProductBatch productBatch)
 {
     ProductBatches.Add(productBatch);
     ProductBatchesToExpired = ProductBatches.Where(batch => DateTime.Now.AddDays(30) > batch.ExpiredDate).ToList();
 }