Ejemplo n.º 1
0
 public void UpdateProfile(BrewProfile profile)
 {
     BrewDatabaseTable entry = _entries.FirstOrDefault(t => t.ProfileId == profile.Id.ToString());
     if (entry != null)
     {
         entry.Profile = ProfileWriter.Write(profile);
         _conn.Update(entry);
     }
 }
Ejemplo n.º 2
0
 public bool ProfileExists(BrewProfile profile)
 {
     BrewDatabaseTable entry = _entries.FirstOrDefault(t => t.ProfileId == profile.Id.ToString());
     return entry != null;
 }
Ejemplo n.º 3
0
 public void DeleteProfile(BrewProfile profile)
 {
     BrewDatabaseTable entry = _entries.FirstOrDefault(t => t.ProfileId == profile.Id.ToString());
     if(entry != null)
         _conn.Delete(entry);
 }