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; }
/// <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(); }
/// <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; }
public StoresController(JewellisDbContext dbContext) { _dbContext = dbContext; }
public ProductsController(JewellisDbContext dbContext, IWebHostEnvironment hostEnvironment, IConfiguration configuration) { _dbContext = dbContext; _hostEnvironment = hostEnvironment; _configuration = configuration; }
public ContactsController(JewellisDbContext dbContext) { _dbContext = dbContext; }
public HomeController(JewellisDbContext dbContext) { _dbContext = dbContext; }
public UsersService(JewellisDbContext dbContext, UserCacheService userCache) { _dbContext = dbContext; _userCache = userCache; }
public OrdersService(JewellisDbContext dbContext) { _dbContext = dbContext; }
public HomeController(JewellisDbContext dbContext, UserIdentityService userIdentity, ClientCurrencyService clientCurrency) { _dbContext = dbContext; _userIdentity = userIdentity; _clientCurrency = clientCurrency; }
public DeliveryMethodsController(JewellisDbContext dbContext) { _dbContext = dbContext; }
public HomeController(JewellisDbContext dbContext, OrdersService orders, ClientCurrencyService clientCurrency) { _dbContext = dbContext; _orders = orders; _clientCurrency = clientCurrency; }
public ProductTypesController(JewellisDbContext dbContext) { _dbContext = dbContext; }
public CartController(JewellisDbContext dbContext, ClientShoppingCartService clientCart) { _dbContext = dbContext; _clientCart = clientCart; }
public NewsletterController(JewellisDbContext dbContext) { _dbContext = dbContext; }
public UsersController(JewellisDbContext dbContext, UsersService users) { _dbContext = dbContext; _users = users; }