private void Update(Project model)
 {
     using (var db = new SQLite.SQLiteConnection(Settings.DatabasePath))
     {
         db.Update(model);
     }
 }
 public ProjectViewModel(Project project)
     : this()
 {
     DisplayName = "Project properties";
     Name = project.Name;
     Description = project.Description;
     Workspace = project.Workspace;
     Id = project.Id;
 }
 public void Save(Project model)
 {
     if (model.Id == 0)
     {
         Insert(model);
     }
     else
     {
         Update(model);
     }
 }