public void Save() { var id = dbBuildingSettings.GetBuildingId(SourceConnectionString, DestinationConnectionString, VocabularyConnectionString, Vendor); if (id.HasValue) { Id = id; dbBuildingSettings.Update(Id.Value, SourceConnectionString, DestinationConnectionString, VocabularyConnectionString, Vendor); } else { Id = dbBuildingSettings.Create(SourceConnectionString, DestinationConnectionString, VocabularyConnectionString, Vendor); } SetVendorSettings(); }
public void Save() { var id = _dbBuildingSettings.GetBuildingId(RawSourceConnectionString, RawDestinationConnectionString, RawVocabularyConnectionString, Vendor); if (id.HasValue) { Id = id; _dbBuildingSettings.Update(Id.Value, RawSourceConnectionString, RawDestinationConnectionString, RawVocabularyConnectionString, Vendor, BatchSize); } else { Id = _dbBuildingSettings.Create(RawSourceConnectionString, RawDestinationConnectionString, RawVocabularyConnectionString, Vendor, BatchSize); } SetVendorSettings(); }