//private readonly IHttpContextAccessor _contextAccessor; //private ISession _session => _contextAccessor.HttpContext.Session; public WeatherForecastController(ILogger <WeatherForecastController> logger, IHttpContextAccessor http, BussinessLogicLayer bussinessLogicLayer) { _logger = logger; //_contextAccessor = http; _bussinessLogicLayer = bussinessLogicLayer; }
public WeatherForecastController(ILogger <WeatherForecastController> logger, IHttpContextAccessor http) { _logger = logger; _contextAccessor = http; _bussinessLogicLayer = new BussinessLogicLayer(_contextAccessor); }