Exemplo n.º 1
0
        /// <summary>
        /// Export page templates
        /// </summary>
        /// <param name="si"></param>
        /// <param name="gridExportMode"></param>
        /// <param name="pageTemplateId"></param>
        /// <returns></returns>
        public ActionResult Exports(JqSearchIn si, GridExportMode gridExportMode, int?pageTemplateId)
        {
            var workbook = _pageTemplateService.Exports(si, gridExportMode, pageTemplateId);

            var output = new MemoryStream();

            workbook.Write(output);

            return(File(output.ToArray(), "application/vnd.ms-excel", "PageTemplates.xls"));
        }