Esempio n. 1
0
        public IActionResult GetCategoriDelete(int id)
        {
            NewsPaperCategory categori = _newsPaperServices.GetCategoriById(id);

            _newsPaperServices.DeleteNewsCategory(categori);
            SuccessNotification("Categori Silindi.");
            return(new NullJsonResult());
        }
Esempio n. 2
0
 public void UpdateCategory(NewsPaperCategory category)
 {
     if (category == null)
     {
         throw new ArgumentNullException(nameof(category));
     }
     _newsPaperCategoryRepository.Update(category);
     _eventPublisher.EntityUpdated(category);
 }
Esempio n. 3
0
 public void DeleteNewsCategory(NewsPaperCategory newsCategory)
 {
     if (newsCategory == null)
     {
         throw new ArgumentNullException(nameof(newsCategory));
     }
     _newsPaperCategoryRepository.Delete(newsCategory);
     _eventPublisher.EntityDeleted(newsCategory);
 }
Esempio n. 4
0
 public ENewsCategoriesModel PrepareNewsCategoriesModel(ENewsCategoriesModel model, NewsPaperCategory newsPaperCategory,
                                                        bool excludeProperties = false)
 {
     return(model);
 }