コード例 #1
0
ファイル: KarmaController.cs プロジェクト: Hary309/nanoblog
 public KarmaController(
     IEntryKarmaService entryKarmaService,
     ICommentKarmaService commentKarmaService,
     IEntryService entryService,
     ICommentService commentService
     )
 {
     this.entryKarmaService   = entryKarmaService;
     this.commentKarmaService = commentKarmaService;
     this.entryService        = entryService;
     this.commentService      = commentService;
 }
コード例 #2
0
ファイル: CommentService.cs プロジェクト: Hary309/nanoblog
 public CommentService(AppDbContext appDbContext, ICommentKarmaService karmaService, IMapper mapper)
 {
     _dbContext    = appDbContext;
     _mapper       = mapper;
     _karmaService = karmaService;
 }