예제 #1
0
 public Boolean DeleteNewsById(int id, string urlStr)
 {
     if (_newsRepository.GetNewsDetailItemById(id, urlStr) == null)
     {
         return(false);
     }
     _newsRepository.DeleteNewsById(id);
     return(true);
 }
예제 #2
0
 public void DeleteNewsById(int id)
 {
     _newsRepo.DeleteNewsById(id);
 }