Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TouristSpotController"/> class.
        ///     Contrutor padrão do TouristSpotController.
        /// </summary>
        /// <param name="appService">Application de serviço</param>
        /// <param name="loggerFactory">Factory de gerenciamento de logs</param>
        public TouristSpotController(
            ITouristSpotAppService appService,
            ICommentAppService commentAppService,
            IFavoriteAppService favoriteAppService,
            IPictureAppService pictureAppService,
            IVoteAppService voteAppService,
            ILoggerFactory loggerFactory)
            : base(appService)
        {
            this.appService         = appService;
            this.commentAppService  = commentAppService;
            this.favoriteAppService = favoriteAppService;
            this.pictureAppService  = pictureAppService;
            this.voteAppService     = voteAppService;

            this.logger = loggerFactory.CreateLogger <TouristSpotController>();
        }
Exemple #2
0
 public VoteController(IVoteAppService voteAppService)
 {
     _voteAppService = voteAppService;
 }