public ActionResult DownloadActiveDataset(long cohortGroupId)
        {
            var model = _artefactService.CreateActiveDatasetForDownload(0, cohortGroupId);

            return(Json(new { success = true, model.FileName }, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        public ActionResult DownloadActiveDataset()
        {
            var model = _artefactService.CreateActiveDatasetForDownload(0);

            return(File(string.Format("{0}{1}", model.Path, model.FileName), "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", model.FileName));
        }