Esempio n. 1
0
        public async Task <IActionResult> Backup()
        {
            var dbData = await _blog.BackupDatabase();

            this.HttpContext.Response.Headers.Add("Content-Disposition", "attachment; filename=BlogBackup.db");
            return(File(dbData, "text/plain"));
        }