Ejemplo n.º 1
0
        public async Task <ActionResult> NewReport(string reportName, string folderName, HttpPostedFileBase reportFile)
        {
            var bytes = new BinaryReader(reportFile.InputStream).ReadBytes(reportFile.ContentLength);
            await PowerBiOnPremClient.AddNewReport(reportName, reportFile.FileName, folderName, bytes);

            return(RedirectToAction("Index"));
        }