public List<Call> DeleteCalls(Call call) { this.callHistory.Remove(call); return this.callHistory; }
public void RemoveCall(Call call) { for (int i = 0; i < callHistory.Count; i++) { if (call.Duration == callHistory[i].Duration) { callHistory.RemoveAt(i); } } }
public List<Call> AddCalls(Call call) { this.callHistory.Add(call); return this.callHistory; }
// Add methods for adding and deleting calls from the calls history. Add a method to clear the call history. (Task 10.) public void AddCall(Call call) { callHistory.Add(call); }