public ActionResult SubmitForm(DbBackupBaseEntity dbBackupBaseEntity)
 {
     dbBackupBaseEntity.F_FilePath = Server.MapPath("~/Resource/DbBackup/" + dbBackupBaseEntity.F_FileName + ".bak");
     dbBackupBaseEntity.F_FileName = dbBackupBaseEntity.F_FileName + ".bak";
     _dbBackupService.SubmitForm(dbBackupBaseEntity);
     return(Success("操作成功。"));
 }
Beispiel #2
0
 public void SubmitForm(DbBackupBaseEntity dbBackupBaseEntity)
 {
     dbBackupBaseEntity.F_Id          = Common.Common.GuId();
     dbBackupBaseEntity.F_EnabledMark = true;
     dbBackupBaseEntity.F_BackupTime  = DateTime.Now;
     service.ExecuteDbBackup(dbBackupBaseEntity);
 }