示例#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);
 }