public static SeoInfo ToWebModel(this VirtoCommerce.Client.Model.VirtoCommerceDomainCommerceModelSeoInfo seoDto)
 {
     var retVal = new SeoInfo();
     retVal.InjectFrom(seoDto);
     retVal.Slug = seoDto.SemanticUrl;
     retVal.Title = seoDto.PageTitle;
     return retVal;
 }
        public static SeoInfo ToWebModel(this VirtoCommerce.Client.Model.VirtoCommerceDomainCommerceModelSeoInfo seoDto)
        {
            var retVal = new SeoInfo();

            retVal.InjectFrom(seoDto);
            retVal.Slug  = seoDto.SemanticUrl;
            retVal.Title = seoDto.PageTitle;
            return(retVal);
        }
 public static SeoInfo ToWebModel(this VirtoCommerce.Client.Model.VirtoCommerceDomainCommerceModelSeoInfo seoDto)
 {
     var 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;
 }
Beispiel #4
0
        public static SeoInfo ToWebModel(this VirtoCommerce.Client.Model.VirtoCommerceDomainCommerceModelSeoInfo seoDto)
        {
            var 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);
        }
Beispiel #5
0
        public static SeoInfo ToSeoInfo(this coreDto.SeoInfo seoDto)
        {
            var 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)
        {
            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);
        }