public DishRepository(IDishTypeRepository dishTypeRepository, ITimeOfDayRepository timeOfDayRepository) { TimeOfDay = new TimeOfDayRepository(); DishType = new DishTypeRepository(); _dishTypeRepository = dishTypeRepository; _timeOfDayRepository = timeOfDayRepository; }
public Repository( IDishRepository dishRepository, ITimeOfDayRepository timeOfDayRepository, IDishTypeRepository dishTypeRepository) { _dishRepository = dishRepository; _timeOfDayRepository = timeOfDayRepository; _dishTypeRepository = dishTypeRepository; }