I would like the PDF file to appear in the browser. Both Chrome and IE are downloading the file. My action looks like this:
Code: C#
public class PDFController : Controller
{
[EO.Pdf.Mvc4.RenderAsPDF]
[HttpGet]
public ActionResult Session(int sessionID)
{
Session session = Database.GetSession(sessionID);
if (session == null) return new HttpNotFoundResult();
return View(new List<Session>() { session });
}
}