public void ParseHeader(PrismCustomerInfoContext context, string[] fields) { var typeId = 3; var typeIndicator = fields.AtIndex(1); if (typeIndicator.Equals("MTCRCUSTOMERINFORMATIONERCOTRESPONSE", StringComparison.OrdinalIgnoreCase)) { typeId = 2; } var model = new TypeCustomerInfoFile { FileTypeId = typeId, ReferenceNumber = fields.AtIndex(2), CrDuns = fields.AtIndex(3), Status = CustomerInfoFileStatusOptions.Imported, }; var cspDunsId = clientDataAccess.IdentifyCspDunsId(model.CrDuns); model.CspDunsId = cspDunsId; context.PushModel(model); }