public bool saveMeet(string filePath, Meet meetToSave) { ISavingSvc saveSvc = (ISavingSvc)GetService(typeof(ISavingSvc).Name); bool didSave = saveSvc.saveMeet(filePath, meetToSave); if (!didSave) { ScriptManager.RegisterClientScriptBlock(null, this.GetType(), "Error", "Meet did NOT save!", true); return(false); } else { ScriptManager.RegisterClientScriptBlock(null, this.GetType(), "Success", "Meet saved correctly at: " + filePath, true); return(true); } }
public bool saveMeet(string filePath, Meet meetToSave) { ISavingSvc saveSvc = (ISavingSvc)GetService(typeof(ISavingSvc).Name); bool didSave = saveSvc.saveMeet(filePath, meetToSave); if (!didSave) { if (!filePath.StartsWith("backups\\")) { MessageBox.Show("Meet did NOT save!"); } return(false); } else { if (!filePath.StartsWith("backups\\")) { MessageBox.Show("Meet saved correctly at: " + filePath); } return(true); } }