示例#1
0
 //依赖注入
 public NewsServices(INewsRepository newsRepository, INewsCommentRepsitory newsCommentRepsitory, INewsClassifyRepository newsClassifyRepository)
     : base(newsRepository)
 {
     this.newsRepository         = newsRepository;
     this.newsCommentRepsitory   = newsCommentRepsitory;
     this.newsClassifyRepository = newsClassifyRepository;
 }