public abstract BenchmarkProperty editBenchmark(int benchmarkId, BenchmarkProperty newBenchmark);
public override BenchmarkProperty editBenchmark(int benchmarkId, BenchmarkProperty newBenchmark) { BenchmarkProperty oldBenchmark = emdb.Benchmarks.Find(benchmarkId); oldBenchmark.BenchmarkCO2Good = newBenchmark.BenchmarkCO2Good; oldBenchmark.BenchmarkCO2Typical = newBenchmark.BenchmarkCO2Typical; oldBenchmark.BenchmarkkWhGood = newBenchmark.BenchmarkkWhGood; oldBenchmark.BenchmarkkWhTypical = newBenchmark.BenchmarkkWhTypical; oldBenchmark.FloorArea = newBenchmark.FloorArea; oldBenchmark.typeAveragekWh = newBenchmark.typeAveragekWh; oldBenchmark.typeBestkWh = newBenchmark.typeBestkWh; emdb.SaveChanges(); return oldBenchmark; }