public async Task <IActionResult> Get() { XtraReport report = new XtraReport1(); Stream stream = new MemoryStream(); await report.ExportToPdfAsync(stream); stream.Position = 0; return(File(stream, "application/pdf", "devex-report.pdf")); //Export(); return(null); //var rng = new Random(); //return Enumerable.Range(1, 5).Select(index => new WeatherForecast //{ // Date = DateTime.Now.AddDays(index), // TemperatureC = rng.Next(-20, 55), // Summary = Summaries[rng.Next(Summaries.Length)] //}) //.ToArray(); }