void OnPlusClicked(object sender, EventArgs args) { var profile = new UserProfile (); var profilePage = new ManageUserProfile (); profilePage.BindingContext = profile; Navigation.PushAsync (profilePage); }
public int SaveUserProfile(UserProfile item) { lock (locker) { if (item.ID != 0) { database.Update(item); return item.ID; } else { return database.Insert(item); } } }