public List <MeasurementViewModel> LoadMeasurements() { List <MeasurementViewModel> Measurements = new List <MeasurementViewModel>(); List <IMeasurementData> MeasurementDatas = _MeasurementRepository.LoadMeasurements(); foreach (IMeasurementData MeasurementData in MeasurementDatas) { Measurements.Add(new MeasurementViewModel() { Id = MeasurementData.Id, Name = MeasurementData.Name }); } return(Measurements); }