public void DeletePostCategory(PostCategoryMapping productCategory) { if (productCategory == null) { throw new ArgumentNullException(nameof(productCategory)); } _postCategoryRepository.Delete(productCategory); _eventPublisher.EntityDeleted(productCategory); }
public void UpdatePostCategoryMapping(PostCategoryMapping postCategoryMapping) { if (postCategoryMapping == null) { throw new ArgumentNullException(nameof(postCategoryMapping)); } _postCategoryRepository.Update(postCategoryMapping); //event notification _eventPublisher.EntityUpdated(postCategoryMapping); }