public void SubmitForm(Sys_DbBackup dbBackupEntity) { dbBackupEntity.F_Id = Common.GuId(); dbBackupEntity.F_EnabledMark = true; dbBackupEntity.F_BackupTime = DateTime.Now; service.ExecuteDbBackup(dbBackupEntity); }
public ActionResult SubmitForm(Sys_DbBackup dbBackupEntity) { dbBackupEntity.F_FilePath = Server.MapPath("~/Resource/DbBackup/" + dbBackupEntity.F_FileName + ".bak"); dbBackupEntity.F_FileName = dbBackupEntity.F_FileName + ".bak"; dbBackupApp.SubmitForm(dbBackupEntity); return(Success("操作成功。")); }