Exemplo n.º 1
0
        //[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());
        }
Exemplo n.º 2
0
 public FetchWeatherNotification(FetchWeatherQuery fetchWeatherQuery, WeatherApiResponse weatherApiResponse)
 {
     FetchWeatherQuery  = fetchWeatherQuery;
     WeatherApiResponse = weatherApiResponse;
 }