public void UpdateEntry(Kumpuls kumpul) { // Find the index of the entry that we need to update. int entryIndex = ListRepository.Team.FindIndex(e => e.Nilai == kumpul.Nilai); ListRepository.Kumpul[0] = kumpul; }
public void AddEntry(Kumpuls kumpul) { // Get the next available entry ID. ListRepository.Kumpul.Add(kumpul); }