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