Exemple #1
0
        public JsonNetResult Restore(Backup backup)
        {
            if (BackupRoutine.Restore(backup))
            {
                return(JsonNet.JsonOK());
            }

            return(JsonNet.JsonError(Resources.Global.Backup_RestoreFailed));
        }
Exemple #2
0
        public JsonNetResult BackupNow()
        {
            if (BackupRoutine.SingleBackup())
            {
                return(JsonNet.JsonOK());
            }

            return(JsonNet.JsonError(Resources.Global.Backup_Failed));
        }