Example #1
0
 public StandardProviderSearchResultsItemResponse MapToStandardProviderResponse(
     StandardProviderSearchResultsItem item)
 {
     return(new StandardProviderSearchResultsItemResponse
     {
         ProviderName = item.ProviderName,
         LegalName = item.LegalName,
         ApprenticeshipInfoUrl = item.ApprenticeshipInfoUrl,
         ApprenticeshipMarketingInfo = item.ApprenticeshipMarketingInfo,
         ContactUsUrl = item.ContactUsUrl,
         DeliveryModes = item.DeliveryModes,
         Distance = item.Distance,
         Email = item.Email,
         EmployerSatisfaction = item.EmployerSatisfaction,
         LearnerSatisfaction = item.LearnerSatisfaction,
         MarketingName = item.MarketingName,
         NationalOverallAchievementRate = item.NationalOverallAchievementRate,
         NationalProvider = item.NationalProvider,
         OverallAchievementRate = item.OverallAchievementRate,
         OverallCohort = item.OverallCohort,
         Phone = item.Phone,
         ProviderMarketingInfo = item.ProviderMarketingInfo,
         TrainingLocations = item.TrainingLocations,
         Ukprn = item.Ukprn,
         IsHigherEducationInstitute = item.IsHigherEducationInstitute,
         Website = item.Website,
         HasNonLevyContract = item.HasNonLevyContract,
         HasParentCompanyGuarantee = item.HasParentCompanyGuarantee,
         IsNew = item.IsNew,
         IsLevyPayerOnly = item.IsLevyPayerOnly
     });
 }
Example #2
0
        ApprenticeshipDetails IProviderMapping.MapToProvider(StandardProviderSearchResultsItem item, int locationId)
        {
            if (item == null)
            {
                return(null);
            }

            var details = MapFromInterface(item, locationId);

            return(details);
        }