private void SaveDiabeticRetinopathyParserlog(string fileNameWithExtention, long customerId, long eventId, string errorMessage) { var diabeticRetinopathyParserlog = new DiabeticRetinopathyParserlog(); diabeticRetinopathyParserlog.FileName = fileNameWithExtention; diabeticRetinopathyParserlog.DateCreated = DateTime.Now; diabeticRetinopathyParserlog.CustomerId = customerId; diabeticRetinopathyParserlog.EventId = eventId; diabeticRetinopathyParserlog.ErrorMessage = errorMessage; _diabeticRetinopathyParserlogRepository.Save(diabeticRetinopathyParserlog); }
public void Save(DiabeticRetinopathyParserlog domainObject) { var entity = Mapper.Map <DiabeticRetinopathyParserlog, DiabeticRetinopathyParserlogEntity>(domainObject); using (var adapter = PersistenceLayer.GetDataAccessAdapter()) { if (!adapter.SaveEntity(entity)) { throw new PersistenceFailureException(); } } }