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