public IActionResult GetUserLocation(double latitude, double longitude) { _weatherService.CallService(latitude, longitude); var weather = _weatherService.Weather; var icon = WeatherCodes.Instance.GetWeatherIcon(weather.WeatherInfo); return(Content($@"<img src='{icon}' />{weather.Temp}")); return(BadRequest("Something went wrong!")); }