public void Save_Activated(object sender, ToggledEventArgs e) { DisplayAlert("Alert", "(TO BE IMPLEMENTED) Save is clicked", "OK"); iDataFavourite = DependencyService.Get <IDataStore>(); Favourites favourites = new Favourites() { UserId = 001, FashionAndBeauty = Convert.ToInt32(FashionAndBeauty.IsToggled), SportsAndOutdoor = Convert.ToInt32(SportsAndOutdoorName.IsToggled), Pets = Convert.ToInt32(Pets.IsToggled), Vehicles = Convert.ToInt32(Vehicles.IsToggled), HomeImprovement = Convert.ToInt32(HomeImprovement.IsToggled), BabiesChildren = Convert.ToInt32(BabiesChildren.IsToggled), HobbiesInterests = Convert.ToInt32(HobbiesInterests.IsToggled), MobilePhonesAndAccessories = Convert.ToInt32(MobilePhonesAndAccessories.IsToggled), HomeAppliances = Convert.ToInt32(HomeAppliances.IsToggled), Gaming = Convert.ToInt32(Gaming.IsToggled), Books = Convert.ToInt32(Books.IsToggled), Music = Convert.ToInt32(Music.IsToggled), }; iDataFavourite.AddFavouriteAsync(favourites); }