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