public BarRatingsController(UserManager <User> userManager, IViewModelMapper <BarRatingDto, BarRatingViewModel> modelMapper, IBarRatingService barRatingService) { this.userManager = userManager; this.modelMapper = modelMapper; this.barRatingService = barRatingService; }
public BarCommentController(IBarService barService, IBarCommentsService barCommentsService, IBarRatingService barRatingService, IViewModelMapper <BarCommentDto, BarCommentViewModel> barCommentVmMapper, IViewModelMapper <BarDTO, BarViewModel> barVmMapper) { this.barService = barService ?? throw new ArgumentNullException(nameof(barService)); this.barCommentsService = barCommentsService ?? throw new ArgumentNullException(nameof(barCommentsService)); this.barRatingService = barRatingService ?? throw new ArgumentNullException(nameof(barRatingService)); this.barCommentVmMapper = barCommentVmMapper ?? throw new ArgumentNullException(nameof(barCommentVmMapper)); this.barVmMapper = barVmMapper ?? throw new ArgumentNullException(nameof(barVmMapper)); }
public BarsController(IBarService barService, IBarCommentsService barCommentsService, IBarRatingService barRatingService, IViewModelMapper <BarCommentDto, BarCommentViewModel> barCommentVmMapper, IViewModelMapper <BarDTO, BarViewModel> barVmMapper, IViewModelMapper <BarRatingDto, BarRatingViewModel> barRatingVmMapper, IWebHostEnvironment webHostEnvironment, ICocktailService cocktailService, IViewModelMapper <CocktailDto, CocktailViewModel> cocktailVmMapper) { this.barService = barService ?? throw new ArgumentNullException(nameof(barService)); this.barCommentsService = barCommentsService ?? throw new ArgumentNullException(nameof(barCommentsService)); this.barRatingService = barRatingService ?? throw new ArgumentNullException(nameof(barRatingService)); this.barCommentVmMapper = barCommentVmMapper ?? throw new ArgumentNullException(nameof(barCommentVmMapper)); this.barVmMapper = barVmMapper ?? throw new ArgumentNullException(nameof(barVmMapper)); this.barRatingVmMapper = barRatingVmMapper ?? throw new ArgumentNullException(nameof(barRatingVmMapper)); this.webHostEnvironment = webHostEnvironment ?? throw new ArgumentNullException(nameof(webHostEnvironment)); this.cocktailService = cocktailService ?? throw new ArgumentNullException(nameof(cocktailService)); this.cocktailVmMapper = cocktailVmMapper; }
public BarsController(IViewModelMapper <BarDto, BarViewModel> barViewModelMapper, IViewModelMapper <SearchBarDto, BarViewModel> searchBarVmMapper, IViewModelMapper <BarCommentDto, BarCommentViewModel> barCommentVmMapper, IViewModelMapper <BarRatingDto, BarRatingViewModel> barRatingVmMapper, IViewModelMapper <CocktailDto, CocktailViewModel> cocktailViewModelMapper, UserManager <User> userManager, IBarCommentService barCommentService, IBarRatingService barRatingService, IBarService barService, IToastNotification toastNotification) { this.barViewModelMapper = barViewModelMapper ?? throw new ArgumentNullException(nameof(barViewModelMapper)); this.cocktailViewModelMapper = cocktailViewModelMapper ?? throw new ArgumentNullException(nameof(cocktailViewModelMapper)); this.searchBarVmMapper = searchBarVmMapper ?? throw new ArgumentNullException(nameof(searchBarVmMapper)); this.barRatingVmMapper = barRatingVmMapper ?? throw new ArgumentNullException(nameof(barRatingVmMapper)); this.barCommentVmMapper = barCommentVmMapper ?? throw new ArgumentNullException(nameof(searchBarVmMapper)); this.userManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); this.barService = barService ?? throw new ArgumentNullException(nameof(barService)); this.toastNotification = toastNotification ?? throw new ArgumentNullException(nameof(toastNotification)); this.barCommentService = barCommentService ?? throw new ArgumentNullException(nameof(barCommentService)); this.barRatingService = barRatingService ?? throw new ArgumentNullException(nameof(barRatingService)); }