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

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