public StatusController(ILogger <StatusController> logger, IOptions <APIConfig> config, GPSysContext dbcontext, IHttpContextAccessor accessor) { _logger = logger; _config = config.Value; _dbcontext = dbcontext; _accessor = accessor; _context = accessor.HttpContext; }
public ItemsController(IItemRepository itemRepository, ILogger <ItemsController> logger, IOptions <APIConfig> config, GPSysContext dbcontext, IHttpContextAccessor accessor) { _itemRepository = itemRepository; _logger = logger; _config = config.Value; _dbcontext = dbcontext; _accessor = accessor; _context = accessor.HttpContext; }