Exemple #1
0
 public NewsController(
     INewsService newsService,
     StatisticNewsService statisticNewsService)
 {
     this.newsService          = newsService;
     this.statisticNewsService = statisticNewsService;
 }
Exemple #2
0
 public NewsService(
     NewsDbContext context,
     StatisticNewsService statisticNewsService)
 {
     this.context = context;
     this.statisticNewsService = statisticNewsService;
 }
Exemple #3
0
 public CommentService(
     NewsDbContext context,
     StatisticCommentService statisticCommentService,
     StatisticNewsService statisticNewsService,
     INotificationService notificationService)
 {
     this.context = context;
     this.statisticCommentService = statisticCommentService;
     this.statisticNewsService    = statisticNewsService;
     this.notificationService     = notificationService;
 }