Exemplo n.º 1
0
 public static SeoVm GetSeo(ServiceProviderDetailsVm serviceProviderDetails)
 {
     return(new SeoVm()
     {
         PageType = serviceProviderDetails.PageType,
         Title = Title.ServiceDetails.Replace(serviceProviderDetails),
         Description = Description.ServiceDetails.Replace(serviceProviderDetails),
         Header = Header.ServiceDetails.Replace(serviceProviderDetails),
         CanonicalUrl = MslcUrlBuilder.DetailsUrl(serviceProviderDetails.ServiceProvider)
     });
 }
Exemplo n.º 2
0
 public static SeoVm GetSeo(CommunityDetailsVm communityDetails)
 {
     return(new SeoVm()
     {
         PageType = communityDetails.PageType,
         Description = Description.CommunityDetails.Replace(communityDetails),
         Title = Title.CommunityDetails.Replace(communityDetails),
         Header = Header.CommunityDetails.Replace(communityDetails),
         CanonicalUrl = MslcUrlBuilder.DetailsUrl(communityDetails.Community, communityDetails.Community.ListingTypes.ToSearchType())
     });
 }