Révision 6f451cc1 GES_PAC/ViewModel/CreatePlaceViewModel.cs
GES_PAC/ViewModel/CreatePlaceViewModel.cs | ||
---|---|---|
88 | 88 |
private async Task CreatePlace() |
89 | 89 |
{ |
90 | 90 |
var newPlace = new Lieu(Nom, Client, Espece); |
91 |
App.Db.Lieu.Add(newPlace); |
|
92 |
await App.Db.SaveChangesAsync(); |
|
93 |
|
|
91 | 94 |
PlaceViewModel.Instance.Places.Add(newPlace); |
92 | 95 |
await Shell.Current.GoToAsync("//Main"); |
93 | 96 |
} |
Formats disponibles : Unified diff