示例#1
0
 public Promotions(IDatabaseConnectionFactory databaseConnectionFactory, IConfiguration configuration,
                   IMapper mapper, IOfferTypeService offerType, IOfferSubTypeService offerSubType, IPhotos photos)
     : base(databaseConnectionFactory)
 {
     _databaseConnectionFactory = databaseConnectionFactory ?? throw new ArgumentNullException(nameof(databaseConnectionFactory));
     _configuration             = configuration;
     _mapper       = mapper;
     _offerType    = offerType;
     _offerSubType = offerSubType;
     _photos       = photos;
 }
 public FoodItemController(IFoodItemService foodItemService, IOfferTypeService offerTypeService)
 {
     _foodItemService = foodItemService;
     _offerTypeService = offerTypeService;
 }
 public OfferTypeController(IOfferTypeService OfferTypeService)
 {
     _OfferTypeService = OfferTypeService;
 }