Ejemplo n.º 1
0
 public HomeController(IMemoryCache cache, ITheatreService theatreServices,
                       IViewModelMapper <Theatre, TheatreViewModel> theatreViewModelMapper)
 {
     _cache           = cache ?? throw new ArgumentNullException(nameof(cache));
     _theatreServices = theatreServices ?? throw new ArgumentNullException(nameof(theatreServices));
     _theatreVmMapper = theatreViewModelMapper ?? throw new ArgumentNullException(nameof(theatreViewModelMapper));
 }
Ejemplo n.º 2
0
 public PromotionController(IEventService _EventService, ITheatreService _TheatreService, IPromotionService _PromotionService, IPromocodeRepository _PromocodeRepository)
 {
     EventService        = _EventService;
     TheatreService      = _TheatreService;
     PromotionService    = _PromotionService;
     PromocodeRepository = _PromocodeRepository;
 }
Ejemplo n.º 3
0
 public TheatreController(IViewModelMapper <Theatre, TheatreViewModel> theatreVMmapper, ITheatreService theatreService, /* ILogger logger,*/ IReviewServices reviewService, ITheatreReviewServices trServices)
 {
     _theatreVMmapper = theatreVMmapper ?? throw new ArgumentNullException(nameof(theatreVMmapper));
     _theatreService  = theatreService ?? throw new ArgumentNullException(nameof(theatreService));
     //  _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _reviewService = reviewService ?? throw new ArgumentNullException(nameof(reviewService));
     _trServices    = trServices ?? throw new ArgumentNullException(nameof(trServices));
 }
        //private readonly ILogger _logger;

        public TheatreController(ITheatreService theatreServices, ICommentServices commentServices,
                                 UserManager <User> userManager, IViewModelMapper <Theatre, TheatreViewModel> theatreViewModelMapper,
                                 /*ILogger logger,*/ IViewModelMapper <Comment, CommentViewModel> commentViewModelMapper,
                                 IReviewServices reviewServices, IViewModelMapper <Review, ReviewViewModel> reviewViewModelMapper,
                                 IViewModelMapper <SearchTheatre, TheatreViewModel> searchTheatreViewModelMapper
                                 /*ISearchServices searchServices*/)
        {
            _theatreServices        = theatreServices ?? throw new ArgumentNullException(nameof(theatreServices));
            _commentServices        = commentServices ?? throw new ArgumentNullException(nameof(commentServices));
            _userManager            = userManager ?? throw new ArgumentNullException(nameof(_userManager));
            _theatreViewModelMapper = theatreViewModelMapper ?? throw new ArgumentNullException(nameof(theatreViewModelMapper));
            //_logger = logger ?? throw new ArgumentNullException(nameof(logger)); ;
            _commentViewModelMapper       = commentViewModelMapper ?? throw new ArgumentNullException(nameof(commentViewModelMapper));
            _reviewServices               = reviewServices ?? throw new ArgumentNullException(nameof(reviewServices));
            _reviewViewModelMapper        = reviewViewModelMapper ?? throw new ArgumentNullException(nameof(reviewViewModelMapper));
            _searchTheatreViewModelMapper = searchTheatreViewModelMapper ?? throw new ArgumentNullException(nameof(searchTheatreViewModelMapper));
            //_searchServices = searchServices ?? throw new ArgumentNullException(nameof(searchServices));
        }
Ejemplo n.º 5
0
 public TheatreController(ITheatreService theatreService)
 {
     this.TheatreService = theatreService;
 }
Ejemplo n.º 6
0
 public TheatresController(ITheatreService theatreService)
 {
     _theatreService = theatreService;
 }
Ejemplo n.º 7
0
 public TheatresController(ITheatreService theatreService, IAddressService addressService)
 {
     _theatreService = theatreService;
     _addressService = addressService;
 }
Ejemplo n.º 8
0
 public HomeController(ITheatreService theatreService, IOrderService orderService)
 {
     this.theatreService = theatreService;
     this.orderService   = orderService;
 }