public SchemaVersion Index(string id) { if (string.IsNullOrEmpty(id)) { return(null); } if (!SchemaVersionRepository.IsValidDatabaseName(id)) { return(null); } try { return(repository.GetVersion(id)); } catch (Exception exc) { ThrowIfLocalRequest(exc); return(null); } }
public SchemaVersionController() { this.repository = new SchemaVersionRepository(Settings.Default.ConnectionString); }