コード例 #1
0
        public KundeViewModel GenerateKundeViewModel()
        {
            var customers = client.getAllCustomers();

            return(new KundeViewModel
            {
                KundeCollection = new ObservableCollection <KundeDto>(customers)
            });
        }
コード例 #2
0
 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()
     });
 }