public new static CsvVenueRowWithErrors FromModel(VenueUploadRow row) => new CsvVenueRowWithErrors() { ProviderVenueRef = row.ProviderVenueRef, VenueName = row.VenueName, AddressLine1 = row.AddressLine1, AddressLine2 = row.AddressLine2, Town = row.Town, County = row.County, Postcode = row.Postcode, Email = row.Email, Telephone = row.Telephone, Website = row.Website, Errors = string.Join( "\n", row.Errors.Select(errorCode => ErrorRegistry.All[errorCode].GetMessage())) };
private string GetUniqueErrorMessages(VenueUploadRow row) { var errors = row.Errors.Select(errorCode => Core.DataManagement.Errors.MapVenueErrorToFieldGroup(errorCode)); return(string.Join(",", errors.Distinct().ToList())); }