Révision 6f451cc1 GES_PAC/ViewModel/CreateSetViewModel.cs
GES_PAC/ViewModel/CreateSetViewModel.cs | ||
---|---|---|
1 | 1 |
using GES_PAC.Model; |
2 |
using GES_PAC.View; |
|
3 | 2 |
using System.Windows.Input; |
4 | 3 |
|
5 | 4 |
namespace GES_PAC.ViewModel |
... | ... | |
104 | 103 |
var newSet = new Serie(date, DateTimeMAJ, Temperature ?? 0, Humidite ?? 0, Pression ?? 0); |
105 | 104 |
journeeActuelle.AddSet(newSet); |
106 | 105 |
|
106 |
App.Db.Serie.Add(newSet); |
|
107 |
await App.Db.SaveChangesAsync(); |
|
108 |
|
|
107 | 109 |
await Shell.Current.Navigation.PopToRootAsync(); |
108 | 110 |
IsBusy = false; |
109 | 111 |
} |
Formats disponibles : Unified diff