/// <summary> /// Inserts a newRecord after the first record in the repository. /// </summary> /// <param name="newRecord">The new record to insert.</param> /// <remarks>While this isn't exactly realistic, it will help to prove /// the point of the goal of this app.</remarks> public void Insert(Record newRecord) { _records.Insert(1, newRecord); }
/// <summary> /// Inserts a newRecord after the first record in the repository. /// </summary> /// <param name="newRecord">The new record to insert.</param> /// <remarks>While this isn't exactly realistic, it will help to prove /// the point of the goal of this app.</remarks> public void Insert(Record newRecord) { _records.AddAfter(_records.First, newRecord); }
public void Insert(Record newRecord) { string recordKey = newRecord.GivenName + newRecord.Surname; _records.Add(recordKey, newRecord); }