public async Task <IActionResult> DeleteWeather(string city) { var userId = Guid.Parse(User.FindFirstValue(JwtClaimTypes.Subject)); var updatedWeather = await _weatherService.DeleteWeather(city, userId); var updatedWeatherModel = _mapper.Map <ICollection <WeatherApiModel> >(updatedWeather); return(Ok(updatedWeatherModel)); }
public IActionResult Delete(int id) { _service.DeleteWeather(id); return(Ok()); }