Exemple #1
0
        public FileContentResult Export()
        {
            var csvBytes = new byte[0];
            try
            {
                if (ModelState.IsValid)
                {
                    using (var lyconetService = new LyconetService(Db, UserId))
                    {
                        csvBytes = lyconetService.GetTopTen();
                    }
                }
            }
            catch (Exception e)
            {
                Logger.SetLog(e);
            }

            return File(csvBytes, ExportCsvContentType, ExportFileDownloadName);
        }