Пример #1
0
 public LocationRecord Update(LocationRecord record)
 {
     _records = _records.Select(r => {
         if (r.ID == record.ID)
         {
             r = record;
         }
         return(r);
     }).ToList();
     return(record);
 }
Пример #2
0
 public LocationRecord Add(LocationRecord record)
 {
     _records.Add(record);
     Console.WriteLine(_records.Count());
     return(record);
 }