private void Update(Source model) { using (var db = new SQLite.SQLiteConnection(Settings.DatabasePath)) { db.Update(model); } }
public void Save(Source model) { if (model.Id == 0) { Insert(model); } else { Update(model); } }
public SourceViewModel(Source source) : this() { Id = source.Id; Name = source.Name; }