public static void OpenBrowser()
 {
     _driver = DriverFactory.GetDriver();
     BackupRestore.BackupDatabase(Constants.Server,
         Constants.DatabaseName,
         Constants.BackUpPath);
 }
Exemple #2
0
        public ActionResult DownloadFile()
        {
            string file        = BackupRestore.BackupDatabase();
            string contentType = "application/octet-stream";
            var    fileName    = Path.GetFileName(file);

            return(File(file, contentType, fileName));
        }