public function generateCsvAction($city, $days)
    {
        if ($this->getParameter('pianosolo.weather.options.download_csv') === TRUE) {
            $weatherHandler = $this->get('pianosolo.weather');

            $weathers = $weatherHandler->getForecastObject($city, $days);

            if (!empty($weathers)) {
                // Creating CSV Response
                $csvResponse = new WeatherCsvResponse($weathers, $city);

                return $csvResponse->createCsvResponse();
            }

            throw $this->createNotFoundException('City Not Found!');
        }

        throw $this->createNotFoundException('Page Not Found!');
    }