public Dish_IngredientController(Dish_IngredientRepository repository, DishRepository dishRepository, DishController dishController, IngredientRepository ingredientRepository)
 {
     _repository           = repository ?? throw new ArgumentNullException(nameof(repository));
     _dishRepository       = dishRepository ?? throw new ArgumentNullException(nameof(dishRepository));
     _dishController       = dishController ?? throw new ArgumentNullException(nameof(dishController));
     _ingredientRepository = ingredientRepository ?? throw new ArgumentNullException(nameof(ingredientRepository));
 }
 public DishController(DishRepository repository, Order_DishRepository orderDishRepository, OrderRepository orderRepository, TransactionRepository transactionRepository, IngredientRepository ingredientRepository, Dish_IngredientRepository dishIngredientRepository)
 {
     _repository               = repository ?? throw new ArgumentNullException(nameof(repository));
     _orderDishRepository      = orderDishRepository ?? throw new ArgumentNullException(nameof(orderDishRepository));
     _orderRepository          = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _transactionRepository    = transactionRepository ?? throw new ArgumentNullException(nameof(transactionRepository));
     _ingredientRepository     = ingredientRepository ?? throw new ArgumentNullException(nameof(ingredientRepository));
     _dishIngredientRepository = dishIngredientRepository ?? throw new ArgumentException(nameof(dishIngredientRepository));
 }