Example #1
0
 public CommentsController(IGetCommentsCommand getCommand, IGetCommentCommand getOneCommand, IDeleteCommentCommand deleteCommand, IUpdateCommentCommand updateCommand, IAddCommentCommand addCommand)
 {
     _getCommand    = getCommand;
     _getOneCommand = getOneCommand;
     _deleteCommand = deleteCommand;
     _updateCommand = updateCommand;
     _addCommand    = addCommand;
 }
 public CommentsController(IGetCommentsCommand getComments, IAddCommentCommand addComment, IGetCommentCommand getComment, IEditCommentCommand editComment, IDeleteCommentCommand deleteComment)
 {
     this.getComments   = getComments;
     this.addComment    = addComment;
     this.getComment    = getComment;
     this.editComment   = editComment;
     this.deleteComment = deleteComment;
 }
 public CommentsController(IGetCommentsCommand searchCommentsCommand, IGetCommentCommand getOneCommentCommand, ICreateCommentCommand createCommentCommand, IEditCommentCommand editCommentCommand, IDeleteCommentCommand deleteCommentCommand)
 {
     _searchCommentsCommand = searchCommentsCommand;
     _getOneCommentCommand  = getOneCommentCommand;
     _createCommentCommand  = createCommentCommand;
     _editCommentCommand    = editCommentCommand;
     _deleteCommentCommand  = deleteCommentCommand;
 }
 public CommentsController(ICreateCommentCommand createComment, IGetCommentsCommand getAll, IGetCommentCommand getOne, IEditCommentCommand editComment, IDeleteCommentCommand deleteComment)
 {
     _createComment = createComment;
     _getAll        = getAll;
     _getOne        = getOne;
     _editComment   = editComment;
     _deleteComment = deleteComment;
 }
Example #5
0
 public CommentsController(IGetCommentsCommand getCommentsCommand, IGetCommentCommand getCommentCommand, IAddCommentCommand addCommentCommand, IEditCommentCommand editCommentCommand, IDeleteCommentCommand deleteCommentCommand)
 {
     this.getCommentsCommand   = getCommentsCommand;
     this.getCommentCommand    = getCommentCommand;
     this.addCommentCommand    = addCommentCommand;
     this.editCommentCommand   = editCommentCommand;
     this.deleteCommentCommand = deleteCommentCommand;
 }
Example #6
0
 public CommentController(IGetCommentCommand getCommentCommand, IGetCommentsCommand getCommentsCommand, IAddCommentCommand addCommentCommand, IEditCommentCommand editCommentCommand, IDeleteCommentCommand deleteCommentCommand)
 {
     _getCommentCommand    = getCommentCommand;
     _getCommentsCommand   = getCommentsCommand;
     _addCommentCommand    = addCommentCommand;
     _editCommentCommand   = editCommentCommand;
     _deleteCommentCommand = deleteCommentCommand;
 }
Example #7
0
 public CommentsController(BlogContext context, IGetCommentsCommand getCommand, IGetCommentCommand getOneCommand, IAddCommentCommand addCommand, IEditCommentCommand editCommand, IDeleteCommentCommand deleteCommand, IGetAllCommentsCommand getAllCommand)
 {
     Context        = context;
     _getCommand    = getCommand;
     _getOneCommand = getOneCommand;
     _addCommand    = addCommand;
     _editCommand   = editCommand;
     _deleteCommand = deleteCommand;
     _getAllCommand = getAllCommand;
 }
Example #8
0
 public CommentsController(UseCaseExecutor executor, IGetCommentsCommand getComments, IGetCommentCommand getComment, IAddCommentCommand addComment, IEditCommentCommand editComment, IDeleteCommentCommand deleteComment, IGetUsersCommand getUsers, IGetMoviesCommand getMovies)
 {
     this.executor      = executor;
     this.getComments   = getComments;
     this.getComment    = getComment;
     this.addComment    = addComment;
     this.editComment   = editComment;
     this.deleteComment = deleteComment;
     this.getUsers      = getUsers;
     this.getMovies     = getMovies;
 }
Example #9
0
 public CommentController(IGetNewsCommand getNewsCommand, IGetCommentsCommand getCommentsCommand, IGetCommentCommand getCommentCommand, IAddCommentCommand addComment, IDeleteCommentCommand deleteCommentCommand, IEditCommentCommand editCommentCommand, IEmailSender emailSender, NewsContext context, IHostingEnvironment hostingEnvironment)
 {
     _getNewsCommand       = getNewsCommand;
     _getCommentsCommand   = getCommentsCommand;
     _getCommentCommand    = getCommentCommand;
     _addComment           = addComment;
     _deleteCommentCommand = deleteCommentCommand;
     _editCommentCommand   = editCommentCommand;
     _emailSender          = emailSender;
     _context            = context;
     _hostingEnvironment = hostingEnvironment;
 }
Example #10
0
 public HomeController(ILogger <HomeController> logger, IGetMoviesCommand getMovies, IGetMovieCommand getMovie, IGetPostersCommand getPosters, IGetCommentsCommand getComments, IGetProjectionsCommand getProjections, IGetActorsCommand getActors, IGetReservationsCommand getReservations, IAutoAddSeatValuesCommand autoAdd, ImdbTop100Command imdbService)
 {
     _logger              = logger;
     this.getMovies       = getMovies;
     this.getMovie        = getMovie;
     this.getPosters      = getPosters;
     this.getComments     = getComments;
     this.getProjections  = getProjections;
     this.getActors       = getActors;
     this.getReservations = getReservations;
     this.autoAdd         = autoAdd;
     this.imdbService     = imdbService;
 }
Example #11
0
 public CommentController(Context context, IGetCommentsCommand getCommentsCommand, IGetCommentCommand getCommentCommand)
 {
     _context       = context;
     _getCommand    = getCommentsCommand;
     _getOneCommand = getCommentCommand;
 }
 public IActionResult Get([FromQuery] CommentSearch dto, [FromServices] IGetCommentsCommand query) => Ok(executor.ExecuteQuery(query, dto));