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