Exemplo n.º 1
0
 public PostController(ICommunityService communityService, IPostService postService, UserManager <ApplicationUser> userManager, ICommentService commentService, ICommentStateService CommentStateService, IPostStateService PostStateService)
 {
     _communityService    = communityService;
     _postService         = postService;
     _userManager         = userManager;
     _commentService      = commentService;
     _CommentStateService = CommentStateService;
     _PostStateService    = PostStateService;
 }
Exemplo n.º 2
0
 public CommentService(ICommentStateService commentStateService,
                       ICommentsRepository commentRepository,
                       ICommentActionsRepository commentActionsRepository,
                       IRelatedCommentsRepository relatedCommentsRepository)
 {
     this._commentStateService       = commentStateService;
     this._commentRepository         = commentRepository;
     this._commentActionsRepository  = commentActionsRepository;
     this._relatedCommentsRepository = relatedCommentsRepository;
 }