Ejemplo n.º 1
0
 public async Task <IActionResult> ExportXlsx()
 {
     try
     {
         var bytes = _exportManager.ExportCollectionsToXlsx(await _collectionService.GetAllCollections(showHidden: true, storeId: _workContext.CurrentCustomer.StaffStoreId));
         return(File(bytes, "text/xls", "collections.xlsx"));
     }
     catch (Exception exc)
     {
         Error(exc);
         return(RedirectToAction("List"));
     }
 }