Révision 6f451cc1 GES_PAC/ViewModel/EnterAnimalViewModel.cs
GES_PAC/ViewModel/EnterAnimalViewModel.cs | ||
---|---|---|
89 | 89 |
var newAnimalSet = new SerieAnimal(ChamberId, Poids ?? 0, date, NumRFID); |
90 | 90 |
journeeActuelle.GetCurrentSet().AddSerieAnimal(newAnimalSet); |
91 | 91 |
|
92 |
App.Db.SerieAnimal.Add(newAnimalSet); |
|
93 |
await App.Db.SaveChangesAsync(); |
|
94 |
|
|
92 | 95 |
await Shell.Current.GoToAsync($"{nameof(CreateMeasureView)}?chamberId={ChamberId}"); |
93 | 96 |
IsBusy = false; |
94 | 97 |
} |
Formats disponibles : Unified diff