public TourViewModel(WebApiService apiService) { api = apiService; tapCommand = new Command(OnTapped); // var cooki = Application.Current.Properties["cookie"] as string; var email = App.email; //Application.Current.Properties["email"] as string; var password = App.password; //Application.Current.Properties["password"] as string; // api.AddCookies(cooki); var result = api.Authorize(email, password); if (result.IsSuccess()) { loadData(); } // List<Tour> tours = api.GetMyTours(); }