using Microsoft.AspNetCore.Hosting; public async Task<NESTO?> GetKiaDealerInfoAsync() { string location = _webHostEnvironment.WebRootPath; string fileName = "PUTANJA"; string filePath = Path.Combine(location, fileName); using (StreamReader streamReader = new(filePath)) { string json = await streamReader.ReadToEndAsync(); return JsonSerializer.Deserialize<NESTO>(json); } }