Esempio n. 1
0
 public EFOrderRepository(
     AppDataDbContext context,
     IDishAvailabilityRepository dishAvailabilityRepository)
 {
     _context = context;
     _dishAvailabilityRepository = dishAvailabilityRepository;
 }
 public PartnerController(IDishRepository dishRepository, IOrderRepository orderRepo,
                          IDishAvailabilityRepository dishAvailRepo)
 {
     this.dishRepo      = dishRepository;
     this.orderRepo     = orderRepo;
     this.dishAvailRepo = dishAvailRepo;
 }
 public AdminDishController(IDishTypeRepository repoType, IDishRepository repoDish, IDishAvailabilityRepository repoAvail,
                            IPartnerRepository repoPartner)
 {
     _repoType    = repoType;
     _repoDish    = repoDish;
     _repoAvail   = repoAvail;
     _repoPartner = repoPartner;
 }
 public DishController(IDishRepository dishRepository, IDishTypeRepository typeRepository,
                       IDishAvailabilityRepository availabilityRepository, UserManager <CustomUser> userManager, IPartnerRepository partnerRepository)
 {
     _dishRepo    = dishRepository;
     _typeRepo    = typeRepository;
     _availRepo   = availabilityRepository;
     _userManager = userManager;
     _partnerRepo = partnerRepository;
 }
Esempio n. 5
0
 public OrderController(
     IOrderRepository orderRepository,
     UserManager <CustomUser> userManager,
     IDishRepository dishRepository,
     IDishAvailabilityRepository dishAvailabilityRepository,
     IPartnerRepository partnerRepository)
 {
     _orderRepository            = orderRepository;
     _dishRepository             = dishRepository;
     _userManager                = userManager;
     _dishAvailabilityRepository = dishAvailabilityRepository;
     _partnerRepository          = partnerRepository;
 }