public void Delete(int id) { _logger.Info("Deleting Product with ID {id}", id); Product entity = _dbContext.Product.Find(id); _dbContext.Remove(entity); }
public void Delete(int id) { _logger.Info("Deleting Location with ID {id}", id); Location entity = _dbContext.Location.Find(id); _dbContext.Remove(entity); }
public void Delete(int customerID) { _logger.Info("Deleting Customer with ID {customerID}", customerID); Customer entity = _dbContext.Customer.Find(customerID); _dbContext.Remove(entity); }