Ejemplo n.º 1
0
        public ActionResult ExportExcel(string filterRules = "", string sort = "Id", string order = "asc")
        {
            var fileName = "works_" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xlsx";
            var stream   = _workService.ExportExcel(filterRules, sort, order);

            return(File(stream, "application/vnd.ms-excel", fileName));
        }