public static FileResult CreateExcelFile <T>(this Controller controller, string fileName, IEnumerable <T> items)
        {
            var result = controller.CreateExcelFile <T>(items, null);

            result.FileDownloadName = fileName;

            return(result);
        }
 public static FileResult CreateExcelFile <T>(this Controller controller, IEnumerable <T> items)
 {
     return(controller.CreateExcelFile <T>(items, null));
 }