LocomotiveTypeEditViewModel ITrainsPlanesCars.CreateLocomotiveTypeEditViewModel(int identifier) { LocomotiveTypeEditViewModel vm = new LocomotiveTypeEditViewModel(); var dto = TypeService.Read(identifier); /* map to */ vm.identifier = dto.ClassificationId; vm.Power = dto.Power; vm.Classification = dto.Classification; vm.Comments = dto.Comments; return(vm); }
/* *************** */ /* Locomotive Type */ /* *************** */ LocomotiveTypeEditViewModel ITrainsPlanesCars.CreateLocomotiveTypeEditViewModel() { var vm = new LocomotiveTypeEditViewModel(); return(vm); }