public IActionResult GetCategoriDelete(int id) { NewsPaperCategory categori = _newsPaperServices.GetCategoriById(id); _newsPaperServices.DeleteNewsCategory(categori); SuccessNotification("Categori Silindi."); return(new NullJsonResult()); }
public void UpdateCategory(NewsPaperCategory category) { if (category == null) { throw new ArgumentNullException(nameof(category)); } _newsPaperCategoryRepository.Update(category); _eventPublisher.EntityUpdated(category); }
public void DeleteNewsCategory(NewsPaperCategory newsCategory) { if (newsCategory == null) { throw new ArgumentNullException(nameof(newsCategory)); } _newsPaperCategoryRepository.Delete(newsCategory); _eventPublisher.EntityDeleted(newsCategory); }
public ENewsCategoriesModel PrepareNewsCategoriesModel(ENewsCategoriesModel model, NewsPaperCategory newsPaperCategory, bool excludeProperties = false) { return(model); }