public bool SaveAlert(AlertDetails alertDetails) { DatabaseAlert dbAlert = new DatabaseAlert(alertDetails); dbAlert.EscapeStringFields(); if (alertDetails.AlertId != 0) { return(_dbQueryService.PersistExistingAlert(dbAlert)); } else { return(_dbQueryService.PersistNewAlert(dbAlert)); } }