/// <summary> /// Favorites handler constructor /// </summary> /// <param name="lactafarmaService"></param> /// <param name="mailService"></param> /// <param name="config"></param> /// <param name="logger"></param> /// <param name="cache"></param> /// <param name="userManager"></param> public FavoritesController(ILactafarmaService lactafarmaService, IMailService mailService, IConfigurationRoot config, ILogger <FavoritesController> logger, IMemoryCache cache, UserManager <Data.Entities.User> userManager) : base( lactafarmaService, mailService, config, cache, userManager) { _logger = logger; }
/// <summary> /// Groups handler constructor /// </summary> /// <param name="lactafarmaService"></param> /// <param name="mailService"></param> /// <param name="config"></param> /// <param name="logger"></param> /// <param name="cache"></param> /// <param name="userManager"></param> public GroupsController(ILactafarmaService lactafarmaService, IMailService mailService, IConfigurationRoot config, ILogger <GroupsController> logger, IMemoryCache cache, UserManager <User> userManager) : base(lactafarmaService, mailService, config, cache, userManager) { _logger = logger; CacheInitialize(lactafarmaService.GetAllGroups(), EntityType.Group); }
/// <summary> /// Products handler constructor /// </summary> /// <param name="lactafarmaService"></param> /// <param name="mailService"></param> /// <param name="config"></param> /// <param name="logger"></param> /// <param name="cache"></param> /// <param name="userManager"></param> public ProductsController(ILactafarmaService lactafarmaService, IMailService mailService, IConfigurationRoot config, ILogger <ProductsController> logger, IMemoryCache cache, UserManager <Data.Entities.User> userManager) : base( lactafarmaService, mailService, config, cache, userManager) { _logger = logger; CacheInitialize(lactafarmaService.GetAllProducts(), EntityType.Product); }
/// <summary> /// Alerts handler constructor /// </summary> /// <param name="lactafarmaService"></param> /// <param name="mailService"></param> /// <param name="config"></param> /// <param name="logger"></param> /// <param name="cache"></param> /// <param name="userManager"></param> public AlertsController(ILactafarmaService lactafarmaService, IMailService mailService, IConfigurationRoot config, ILogger <AlertsController> logger, IMemoryCache cache, UserManager <User> userManager) : base(lactafarmaService, mailService, config, cache, userManager) { _logger = logger; //CacheInitialize(lactafarmaService.GetAllAlerts()); }
/// <summary> /// Base handler constructor /// </summary> /// <param name="lactafarmaService"></param> /// <param name="mailService"></param> /// <param name="config"></param> /// <param name="cache"></param> /// <param name="userManager"></param> public BaseController(ILactafarmaService lactafarmaService, IMailService mailService, IConfigurationRoot config, IMemoryCache cache, UserManager <User> userManager) { LactafarmaService = lactafarmaService; MailService = mailService; Config = config; Cache = cache; _userManager = userManager; }
/// <summary> /// Logs handler constructor /// </summary> /// <param name="lactafarmaService"></param> /// <param name="mailService"></param> /// <param name="config"></param> /// <param name="logger"></param> /// <param name="cache"></param> /// <param name="userManager"></param> public LogController(ILactafarmaService lactafarmaService, IMailService mailService, IConfigurationRoot config, ILogger <LogController> logger, IMemoryCache cache, UserManager <User> userManager) : base(lactafarmaService, mailService, config, cache, userManager) { _logger = logger; _mailService = mailService; }