コード例 #1
0
 public DishRepository(IDishTypeRepository dishTypeRepository, ITimeOfDayRepository timeOfDayRepository)
 {
     TimeOfDay            = new TimeOfDayRepository();
     DishType             = new DishTypeRepository();
     _dishTypeRepository  = dishTypeRepository;
     _timeOfDayRepository = timeOfDayRepository;
 }
コード例 #2
0
 public AdminDishController(IDishTypeRepository repoType, IDishRepository repoDish, IDishAvailabilityRepository repoAvail,
                            IPartnerRepository repoPartner)
 {
     _repoType    = repoType;
     _repoDish    = repoDish;
     _repoAvail   = repoAvail;
     _repoPartner = repoPartner;
 }
コード例 #3
0
 public DishController(IDishRepository dishRepository, IDishTypeRepository typeRepository,
                       IDishAvailabilityRepository availabilityRepository, UserManager <CustomUser> userManager, IPartnerRepository partnerRepository)
 {
     _dishRepo    = dishRepository;
     _typeRepo    = typeRepository;
     _availRepo   = availabilityRepository;
     _userManager = userManager;
     _partnerRepo = partnerRepository;
 }
コード例 #4
0
        public Repository(
            IDishRepository dishRepository,
            ITimeOfDayRepository timeOfDayRepository,
            IDishTypeRepository dishTypeRepository)
        {
            _dishRepository = dishRepository;

            _timeOfDayRepository = timeOfDayRepository;
            _dishTypeRepository  = dishTypeRepository;
        }
コード例 #5
0
 public DishService(IDishRepository dishRepository, IDishTypeRepository dishTypeRepository)
 {
     _dishRepository     = dishRepository;
     _dishTypeRepository = dishTypeRepository;
 }
コード例 #6
0
 public DishTypeController(IDishTypeRepository t)
 {
     _types = t;
 }