public OrdersController(IOrderRepository orderRepository, IOrderDetailRepository orderDetailRepository, IToppingRepository toppingRepository, IOrderSourceRepository orderSourceRepository,
                         IDrinkRepository drinkRepository, ICategoryRepository categoryRepository, IPromotionRepository promotionRepository, IPrivatePromotionRepository privatePromotionRepository,
                         IPersonRepository personRepository, IAgencyRepository agencyRepository, IOrderSourceTypeRepository orderSourceTypeRepository, IDeliveryPartnerRepository deliveryPartnerRepository,
                         IMapper mapper, IHostingEnvironment environment, IHttpContextAccessor httpContextAccessor, IPdfService pdfService)
 {
     _orderRepository            = orderRepository;
     _orderDetailRepository      = orderDetailRepository;
     _promotionRepository        = promotionRepository;
     _drinkRepository            = drinkRepository;
     _categoryRepository         = categoryRepository;
     _toppingRepository          = toppingRepository;
     _privatePromotionRepository = privatePromotionRepository;
     _personRepository           = personRepository;
     _agencyRepository           = agencyRepository;
     _orderSourceRepository      = orderSourceRepository;
     _orderSourceTypeRepository  = orderSourceTypeRepository;
     _deliveryPartnerRepository  = deliveryPartnerRepository;
     _mapper              = mapper;
     _hostingEnvironment  = environment;
     _httpContextAccessor = httpContextAccessor;
     _pdfService          = pdfService;
 }
 public DeliveryPartnerController(IDeliveryPartnerRepository deliveryPartnerRepository)
 {
     _deliveryPartnerRepository = deliveryPartnerRepository;
 }