コード例 #1
0
 public String deleteNewsItem(int newsItemId)
 {
     return(newsRepository.DeleteNewsItem(newsItemId));
 }
コード例 #2
0
 public void DeleteNewsById(int id)
 {
     //var entity = _newsRepository.GetNewsById(id);
     //if (entity == null) { throw new Exception($"NewsItem with id {id} was not found."); }
     _newsRepository.DeleteNewsItem(id);
 }