public IngredientsController(
            IIngredientService ingredientService,
            ICocktailService cocktailService,
            IIngredientDTOMapper ingredientDTOMapper,
            ICocktailDTOMapper cocktailDTOMapper,
            IToastNotification toaster)

        {
            this.ingredientService   = ingredientService ?? throw new ArgumentNullException(nameof(ingredientService));
            this.cocktailService     = cocktailService ?? throw new ArgumentNullException(nameof(cocktailService));
            this.ingredientDTOMapper = ingredientDTOMapper ?? throw new ArgumentNullException(nameof(ingredientDTOMapper));
            this.cocktailDTOMapper   = cocktailDTOMapper ?? throw new ArgumentNullException(nameof(cocktailDTOMapper));
            this.toaster             = toaster ?? throw new ArgumentNullException(nameof(toaster));
        }
 public CocktailsController(
     ICocktailService cocktailService,
     IIngredientService ingredientService,
     IBarService barService,
     ICocktailDTOMapper cocktailDTOMapper,
     IIngredientDTOMapper ingredientDTOMapper,
     IBarDTOMapper barDTOMApper,
     IToastNotification toaster,
     UserManager <User> userManager
     )
 {
     this.cocktailService     = cocktailService ?? throw new ArgumentNullException(nameof(cocktailService));
     this.ingredientService   = ingredientService ?? throw new ArgumentNullException(nameof(ingredientService));
     this.barService          = barService ?? throw new ArgumentNullException(nameof(barService));
     this.cocktailDTOMapper   = cocktailDTOMapper ?? throw new ArgumentNullException(nameof(cocktailDTOMapper));
     this.ingredientDTOMapper = ingredientDTOMapper ?? throw new ArgumentNullException(nameof(ingredientDTOMapper));
     this.barDTOMApper        = barDTOMApper ?? throw new ArgumentNullException(nameof(barDTOMApper));
     this.toaster             = toaster ?? throw new ArgumentNullException(nameof(toaster));
     this.userManager         = userManager ?? throw new ArgumentNullException(nameof(userManager));
 }