public FlightService(IConfiguration config, IHttpContextAccessor httpContextAccessor, LocationService locationService, NotificationService notificationService) { _config = config; _httpContextAccessor = httpContextAccessor; _locationService = locationService; _notificationService = notificationService; if (_httpContextAccessor.HttpContext.User.Identity.IsAuthenticated) { _accountId = Guid.Parse(_httpContextAccessor.HttpContext.User.Identity.Name); } }