public CommentsController(ICommentRepository commentRepository, IFetchPostService fetchPostService, IUserRepository userRepository, CommentResponseMapper commentResponseMapper) { _userRepository = userRepository; _commentResponseMapper = commentResponseMapper; _commentRepository = commentRepository; _fetchPostService = fetchPostService; }
public UserController(IUserRepository userRepository, ICommentRepository commentRepository, UserResponseMapper userResponseMapper, CommentResponseMapper commentResponseMapper, PostResponseMapper postResponseMapper, IFetchPostService fetchPostService) { _userRepository = userRepository; _commentRepository = commentRepository; _userResponseMapper = userResponseMapper; _commentResponseMapper = commentResponseMapper; _postResponseMapper = postResponseMapper; _fetchPostService = fetchPostService; }