//[Authorize] public async Task <IActionResult> InitWeatherDelivery(FetchWeatherQuery request) { request.Id = Guid.NewGuid(); Logger.LogInformation($"Weather delivery init - id: {request.Id}"); var weatherResponse = await _mediator.Send(request); if (weatherResponse == null) { return(NotFound()); } return(Ok()); }
public FetchWeatherNotification(FetchWeatherQuery fetchWeatherQuery, WeatherApiResponse weatherApiResponse) { FetchWeatherQuery = fetchWeatherQuery; WeatherApiResponse = weatherApiResponse; }