public static TlProviderAddress CreateTlProviderAddress(ResultsAndCertificationDbContext _dbContext, bool addToDbContext = true) { var tlAwardingOrganisation = new TlProviderAddressBuilder().Build(); if (addToDbContext) { _dbContext.Add(tlAwardingOrganisation); } return(tlAwardingOrganisation); }
public static TlProviderAddress CreateTlProviderAddress(ResultsAndCertificationDbContext _dbContext, TlProviderAddress tlProviderAddress, bool addToDbContext = true) { if (tlProviderAddress == null) { tlProviderAddress = new TlProviderAddressBuilder().Build(); } if (addToDbContext) { _dbContext.Add(tlProviderAddress); } return(tlProviderAddress); }