public void DeleteDailyMood(DailyMood mood) { if (set.Contains(mood)) { set.Remove(mood); } }
public void AddDailyMood(DailyMood mood) { if (!set.Contains(mood)) { set.Add(mood); } }
public void ModifyDailyMood(DailyMood mood) { ISet <DailyMood> moodToUpdate = set.Where(x => x.Date.Equals(mood. Date)).ToHashSet(); if (moodToUpdate.Count > 0) { moodToUpdate.First().Value = mood.Value; } }