public async Task <IActionResult> ExportXlsx() { try { var bytes = _exportManager.ExportBrandsToXlsx(await _brandService.GetAllBrands(showHidden: true, storeId: _workContext.CurrentCustomer.StaffStoreId)); return(File(bytes, "text/xls", "brands.xlsx")); } catch (Exception exc) { Error(exc); return(RedirectToAction("List")); } }