public ActionResult PDF(string url = null, List <string> otherUrls = null) { if (url != null) { url = "http://" + Request.Url.Authority + url; } if (otherUrls == null) { otherUrls = new List <string>(); } return(File( _applicationServices.CreatePDF(url, otherUrls.ToArray()), "application/pdf" )); }