Esempio n. 1
0
 public BarReviewsController(IBarServices barServices,
                             IReviewServices reviewServices, IToastNotification toast)
 {
     _barServices    = barServices;
     _reviewServices = reviewServices;
     _toast          = toast;
 }
Esempio n. 2
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));
 }
 public CocktailReviewsController(ICocktailServices cocktailServices,
                                  IReviewServices reviewServices,
                                  IToastNotification toast)
 {
     _cocktailServices = cocktailServices;
     _reviewServices   = reviewServices;
     _toast            = toast;
 }
Esempio n. 4
0
        //private readonly ILogger _logger;

        public ReviewsController(UserManager <User> userManager,
                                 IReviewServices commentServices,
                                 IViewModelMapper <Review, ReviewViewModel> commentMapper /*, ILogger logger*/)
        {
            _userManager    = userManager;
            _reviewServices = commentServices;
            _reviewMapper   = commentMapper;
            //_logger = logger;
        }
Esempio n. 5
0
 public PublisherAdminController(IProductServices product, IPublisherServices publisher,
                                 IProductImageServices productImage, IReviewServices review, IOrderDetailServices orderDetail)
 {
     _product      = product;
     _publisher    = publisher;
     _productImage = productImage;
     _review       = review;
     _orderDetail  = orderDetail;
 }
 public CategoryAdminController(IProductServices product, ICategoryServices category,
                                IProductImageServices productImage, IReviewServices review, IOrderDetailServices orderDetail)
 {
     _product      = product;
     _category     = category;
     _productImage = productImage;
     _review       = review;
     _orderDetail  = orderDetail;
 }
 public BarsController(IBarServices barServices,
                       ICocktailServices cocktailServices,
                       IReviewServices reviewServices,
                       IToastNotification toast,
                       INotificationServices notificationServices)
 {
     _barServices          = barServices;
     _cocktailServices     = cocktailServices;
     _reviewServices       = reviewServices;
     _toast                = toast;
     _notificationServices = notificationServices;
 }
        //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));
        }
Esempio n. 9
0
 public ReviewsController(IReviewServices services, UserManager <IdentityUser> userManager)
 {
     _services    = services;
     _userManager = userManager;
 }
Esempio n. 10
0
 public ReviewAdminController(IReviewServices review)
 {
     _review = review;
 }
Esempio n. 11
0
 public ProductController(IProductServices product, ICategoryServices category, IReviewServices review)
 {
     _product  = product;
     _category = category;
     _review   = review;
 }
 public ReviewAndRatingsController()
 {
     reviewServices = new ReviewServices();
 }
Esempio n. 13
0
 public TcrServices(ReviewContext context)
 {
     Context = context;
     Reviews = new ReviewServices(this);
 }
Esempio n. 14
0
 public ReviewController()
 {
     _reviewServices = new ReviewServices();
 }
Esempio n. 15
0
 public ReviewsController()
 {
     services = new ReviewServices();
 }
Esempio n. 16
0
 public ReviewsController(IReviewServices reviewServices)
 {
     _reviewServices = reviewServices;
 }