Пример #1
0
 public async void Init()
 {
     using (var restaurantSvc = new RestaurantServiceClient())
     using (var reservationSvc = new ReservationServiceClient())
     {
         Restaurants =
             new BindableCollection<RestaurantDto>(await restaurantSvc.GetMyRestaurantsAsync(AppData.User.Token));
         Reservations =
             new BindableCollection<ReservationDto>(await reservationSvc.GetForUserAsync(AppData.User.Token));
     }
 }