public CompletionStatusSettings GetSettings()
 {
     if (SettingsCollection.Count() == 0)
     {
         var settings = new CompletionStatusSettings();
         SettingsCollection.Insert(settings);
         return(settings);
     }
     else
     {
         return(SettingsCollection.FindAll().First());
     }
 }
 public void SetSettings(CompletionStatusSettings settings)
 {
     settings.Id = 0;
     SettingsCollection.Upsert(settings);
 }