Révision 6f451cc1 GES_PAC/ViewModel/CreateBehaviourViewModel.cs
GES_PAC/ViewModel/CreateBehaviourViewModel.cs | ||
---|---|---|
93 | 93 |
var currentSet = JourneeViewModel.Instance.GetCurrentDay().GetCurrentSet(); |
94 | 94 |
currentSet.AddBehaviour(newBehaviour, ChamberId, IsAnimalOut); |
95 | 95 |
|
96 |
App.Db.Comportement.Add(newBehaviour); |
|
97 |
await App.Db.SaveChangesAsync(); |
|
98 |
|
|
96 | 99 |
await Shell.Current.Navigation.PopToRootAsync(); |
97 | 100 |
IsBusy = false; |
98 | 101 |
} |
Formats disponibles : Unified diff