Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public IActionResult Delete(int id)
 {
     _service.DeleteWeather(id);
     return(Ok());
 }