示例#1
0
 public async void Init()
 {
     using (var svc = new RestaurantServiceClient())
     {
         Restaurants =
             new BindableCollection<RestaurantDto>(await svc.GetMyRestaurantsAsync(AppData.User.Token));
     }
 }
示例#2
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));
     }
 }