예제 #1
0
 public void DeletePostCategory(PostCategoryMapping productCategory)
 {
     if (productCategory == null)
     {
         throw new ArgumentNullException(nameof(productCategory));
     }
     _postCategoryRepository.Delete(productCategory);
     _eventPublisher.EntityDeleted(productCategory);
 }
예제 #2
0
        public void UpdatePostCategoryMapping(PostCategoryMapping postCategoryMapping)
        {
            if (postCategoryMapping == null)
            {
                throw new ArgumentNullException(nameof(postCategoryMapping));
            }

            _postCategoryRepository.Update(postCategoryMapping);

            //event notification
            _eventPublisher.EntityUpdated(postCategoryMapping);
        }