public IHttpActionResult GetConferenceProgram(int conferenceId) { try { var model = _bll.GetConferenceProgram(conferenceId); PdfController controller = PdfHelper.Setup("GetProgram"); return(Ok(new ByteArray() { Content = controller.GetProgram(model) })); } catch { return(InternalServerError()); } }