public BarCommentsController(IViewModelMapper <BarCommentDto, BarCommentViewModel> modelMapper, IBarCommentService barCommentService, UserManager <User> userManager, IToastNotification toastNotification) { this.modelMapper = modelMapper; this.barCommentService = barCommentService; this.userManager = userManager; this.toastNotification = toastNotification; }
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)); }