Beispiel #1
0
        public ShopController(ISessionValueProviderService sessionService, IShopService shopService,
                              ISearchService searchService, IShopClientService clientService, IShopActionService shopActionService,
                              IShopCategoryService shopCategoryService, IShopManufacturerService shopManufacturerService,
                              IPrincipalResolver principalResolver, IHeartService heartService, IShopOrderService shopOrderService, IShopPickupPointService pickupPointService)
        {
            _sessionService          = sessionService;
            _shopService             = shopService;
            _searchService           = searchService;
            _clientService           = clientService;
            _shopActionService       = shopActionService;
            _shopCategoryService     = shopCategoryService;
            _shopManufacturerService = shopManufacturerService;
            _principalResolver       = principalResolver;
            _heartService            = heartService;
            _shopOrderService        = shopOrderService;
            _pickupPointService      = pickupPointService;


            var service = DependencyResolver.Current.GetService <IShopSettingsService>();

            try
            {
                var settings = service.GetShopSettings();
                _shopUrl = String.IsNullOrEmpty(settings.ShopUrl) ? "catalog" : settings.ShopUrl;
            }
            catch
            {
                _shopUrl = "catalog";
            }
        }
Beispiel #2
0
 public CartApiController(ICartService cartService, ISessionValueProviderService sessionService, IShopService shopService, ISecurityService securityService, IShopOrderService shopOrderService, ILogService logService)
 {
     _cartService      = cartService;
     _sessionService   = sessionService;
     _shopService      = shopService;
     _securityService  = securityService;
     _shopOrderService = shopOrderService;
     _logService       = logService;
 }
 public FavouriteItemApiController(IFavouriteItemsService favouriteItemsService, ISessionValueProviderService sessionService, ILogService logService)
 {
     _favouriteItemsService = favouriteItemsService;
     _sessionService        = sessionService;
     _logService            = logService;
 }