public void UpdateRecord(EmployeeRecord iRecord)
 {
    var idx = _EmployeeRecords.FindIndex(i => i.Id == iRecord.Id);
    if (idx >= 0)
       _EmployeeRecords[idx] = iRecord;
 }
Esempio n. 2
0
 public void AddRecord(ref EmployeeRecord iRecord)
 {
     iRecord.Id = _NewId++;
     _EmployeeRecords.Add(iRecord);
 }
 public void AddRecord( ref EmployeeRecord iRecord )
 {
    iRecord.Id = _NewId++;
    _EmployeeRecords.Add(iRecord);
 }
Esempio n. 4
0
        public List <EmployeeRecord> GetAllRecords()
        {
            if (_EmployeeRecords == null)
            {
                _EmployeeRecords = _NumRecords > 0 ? EmployeeRecord.GetMockupData().Take(_NumRecords).ToList() : EmployeeRecord.GetMockupData();
            }

            return(_EmployeeRecords);
        }