public KundeViewModel GenerateKundeViewModel() { var customers = client.getAllCustomers(); return(new KundeViewModel { KundeCollection = new ObservableCollection <KundeDto>(customers) }); }
public ReservationHinzufügenViewModel GenerateModifyReservationHinzufügenViewModel(ReservationDto reservation) { return(new ReservationHinzufügenViewModel { IsNew = false, Von = reservation.Von, Bis = reservation.Bis, Kunde = reservation.Kunde, Auto = reservation.Auto, AvailableCars = client.getAllCars(), AvailableCustomers = client.getAllCustomers() }); }