private void AddResultArchiveLog(string summary, TestType testId, long customerId, bool isSuccessful = true) { var log = _resultArchiveLogs.Where(rl => rl.CustomerId == customerId && rl.TestId == testId).SingleOrDefault(); if (isSuccessful && summary.Trim().Length > 0) { isSuccessful = false; } if (log == null) { log = new ResultArchiveLog() { CustomerId = customerId, IsSuccessful = isSuccessful, Notes = summary, TestId = testId, CreatedDate = DateTime.Now, MedicalEquipmentTag = MedicalEquipmentTag.GE.ToString() }; _resultArchiveLogs.Add(log); } else { log.Notes = summary; log.IsSuccessful = isSuccessful; log.CreatedDate = DateTime.Now; } }
public void Delete(ResultArchiveLog domainObject) { throw new NotImplementedException(); }