public static SeoInfo ToWebModel(this storeModel.SeoInfo seoDto) { SeoInfo retVal = null; if (seoDto != null) { retVal = new SeoInfo(); retVal.InjectFrom(seoDto); retVal.Slug = seoDto.SemanticUrl; retVal.Title = seoDto.PageTitle; retVal.Language = string.IsNullOrEmpty(seoDto.LanguageCode) ? Language.InvariantLanguage : new Language(seoDto.LanguageCode); } return(retVal); }
public static SeoInfo ToWebModel(this storeModel.SeoInfo seoDto) { return(seoDto.JsonConvert <catalogModel.SeoInfo>().ToWebModel()); }