public void Delete(ProductMappingItem item) { _repository.Delete(item); _eventPublisher.EntityDeleted<ProductMappingItem>(item); }
public void Insert(ProductMappingItem item) { item.CreatedOnUtc = DateTime.UtcNow; _repository.Insert(item); _eventPublisher.EntityInserted<ProductMappingItem>(item); }