/// <summary> /// Search and Save Location if Location doesn't exist /// </summary> /// <param name="query"></param> /// <returns></returns> public async Task <List <Place> > Getlocations(string query) { List <Place> places = await _searchRequest.GetLocationquery(query); HostingEnvironment.QueueBackgroundWorkItem(ct => _PlaceRepository.SaveLocations(places)); #region TODO:// Implement Mef with HangFire //BackgroundJob.Enqueue(() => _PlaceRepository.SaveLocations(places)); #endregion return(places); }