Пример #1
0
 public OrderController(JewellisDbContext dbContext, UserIdentityService userIdentity, UsersService users, AuthenticateService authenticateService, ClientShoppingCartService clientCart)
 {
     _dbContext           = dbContext;
     _userIdentity        = userIdentity;
     _users               = users;
     _authenticateService = authenticateService;
     _clientCart          = clientCart;
 }
 public AuthenticateService(IHttpContextAccessor httpContextAccessor, JewellisDbContext dbContext, UsersService users, UserCacheService userCache, ClientCurrencyService clientCurrency, ClientThemeService clientTheme)
 {
     _httpContextAccessor = httpContextAccessor;
     _dbContext           = dbContext;
     _users          = users;
     _userCache      = userCache;
     _clientCurrency = clientCurrency;
     _clientTheme    = clientTheme;
 }
Пример #3
0
        /// <summary>
        /// Represents a service (scoped) for managing the client's shopping cart.
        /// </summary>
        public ClientShoppingCartService(IHttpContextAccessor httpContextAccessor, IMemoryCache cache, JewellisDbContext dbContext, UserIdentityService userIdentity, UserCacheService userCache)
        {
            _httpContextAccessor = httpContextAccessor;
            _cache        = cache;
            _dbContext    = dbContext;
            _userIdentity = userIdentity;
            _userCache    = userCache;

            this.InitializeClientCart();
        }
Пример #4
0
        /// <summary>
        /// Represents a service (scoped) for getting the client's preferred theme.
        /// </summary>
        /// <param name="options">The options to configure the <see cref="ClientThemeService"/>.</param>
        public ClientThemeService(IOptions <ClientThemeOptions> options, IHttpContextAccessor httpContextAccessor, JewellisDbContext dbContext, UserIdentityService userIdentity, UsersService users)
        {
            if (string.IsNullOrEmpty(options.Value.DefaultTheme))
            {
                throw new ArgumentNullException("{options.DefaultTheme} cannot be null or empty.");
            }
            if (options.Value.SupportedThemes == null)
            {
                throw new ArgumentNullException("{options.SupportedThemes} cannot be null.");
            }
            if (options.Value.SupportedThemes.Length < 1)
            {
                throw new ArgumentException("{options.SupportedThemes} must have at least 1 supported theme.");
            }

            this.Options         = options.Value;
            _httpContextAccessor = httpContextAccessor;
            _dbContext           = dbContext;
            _userIdentity        = userIdentity;
            _users = users;

            this.InitializeClientTheme();
        }
 public ProductCategoriesController(JewellisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #6
0
 public StoresController(JewellisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #7
0
 public ProductsController(JewellisDbContext dbContext, IWebHostEnvironment hostEnvironment, IConfiguration configuration)
 {
     _dbContext       = dbContext;
     _hostEnvironment = hostEnvironment;
     _configuration   = configuration;
 }
 public ContactsController(JewellisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #9
0
 public HomeController(JewellisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #10
0
 public UsersService(JewellisDbContext dbContext, UserCacheService userCache)
 {
     _dbContext = dbContext;
     _userCache = userCache;
 }
Пример #11
0
 public OrdersService(JewellisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #12
0
 public HomeController(JewellisDbContext dbContext, UserIdentityService userIdentity, ClientCurrencyService clientCurrency)
 {
     _dbContext      = dbContext;
     _userIdentity   = userIdentity;
     _clientCurrency = clientCurrency;
 }
Пример #13
0
 public DeliveryMethodsController(JewellisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #14
0
 public HomeController(JewellisDbContext dbContext, OrdersService orders, ClientCurrencyService clientCurrency)
 {
     _dbContext      = dbContext;
     _orders         = orders;
     _clientCurrency = clientCurrency;
 }
 public ProductTypesController(JewellisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #16
0
 public CartController(JewellisDbContext dbContext, ClientShoppingCartService clientCart)
 {
     _dbContext  = dbContext;
     _clientCart = clientCart;
 }
Пример #17
0
 public NewsletterController(JewellisDbContext dbContext)
 {
     _dbContext = dbContext;
 }
Пример #18
0
 public UsersController(JewellisDbContext dbContext, UsersService users)
 {
     _dbContext = dbContext;
     _users     = users;
 }