/// <summary> /// Duplicate method special for Customer.SeoInfo type /// </summary> public static customerModel.SeoInfo GetBestMatchedSeoInfo(this IEnumerable <customerModel.SeoInfo> seoRecords, Store store, Language language, string slug = null) { customerModel.SeoInfo retVal = null; if (!seoRecords.IsNullOrEmpty()) { var catalogSeoInfos = seoRecords.Select(x => x.JsonConvert <catalogModel.SeoInfo>()); var catalogSeoInfo = GetBestMatchedSeoInfo(catalogSeoInfos, store, language, slug); if (catalogSeoInfo != null) { retVal = catalogSeoInfo.JsonConvert <customerModel.SeoInfo>(); } } return(retVal); }
public static SeoInfo ToWebModel(this customerModel.SeoInfo seoDto) { return(seoDto.JsonConvert <catalogModel.SeoInfo>().ToWebModel()); }