Exemplo n.º 1
0
        public async Task <ServiceResult> BackupDatabaseAsync()
        {
            AppManager    app = new AppManager(Globals.DBConnectionKey, "web", Request.Headers?.Authorization?.Parameter);
            ServiceResult res = await app.BackupDatabase(Globals.Application.AppSetting("DBBackupKey"));

            if (res.Code != 200)
            {
                return(res);
            }

            ClearTempFiles();
            return(res);
        }