async void Save_Clicked(System.Object sender, System.EventArgs e) { this.cabinet.Nume = txtNume.Text; this.cabinet.Adresa = txtAdresa.Text; using (var context = new Services.Context()) { context.Update(this.cabinet); await context.SaveChangesAsync(); } await Navigation.PopModalAsync(); }
async void Save_Clicked(System.Object sender, System.EventArgs e) { this.client.Nume = txtNume.Text; this.client.Prenume = txtPrenume.Text; this.client.Telefon = txtTelefon.Text; using (var context = new Services.Context()) { context.Update(client); await context.SaveChangesAsync(); } await Navigation.PopModalAsync(); }
async void Save_Clicked(System.Object sender, System.EventArgs e) { this.programare.CabinetId = ((Cabinet)this.PickerCabinet.SelectedItem).CabinetId; this.programare.ClientId = ((Client)this.PickerClient.SelectedItem).ClientId; this.programare.Data = txtData.Text; using (var context = new Services.Context()) { context.Update(this.programare); await context.SaveChangesAsync(); } await Navigation.PopModalAsync(); }