public static coreModel.SeoInfo ToCoreModel(this dataModel.SeoUrlKeyword urlKeyword) { var retVal = new coreModel.SeoInfo(); retVal.InjectFrom(urlKeyword); retVal.LanguageCode = urlKeyword.Language; retVal.SemanticUrl = urlKeyword.Keyword; retVal.PageTitle = urlKeyword.Title; return(retVal); }
/// <summary> /// Patch changes /// </summary> /// <param name="source"></param> /// <param name="target"></param> public static void Patch(this dataModel.SeoUrlKeyword source, dataModel.SeoUrlKeyword target) { if (target == null) { throw new ArgumentNullException("target"); } var patchInjection = new PatchInjection <dataModel.SeoUrlKeyword>(x => x.ImageAltDescription, x => x.IsActive, x => x.Keyword, x => x.Language, x => x.StoreId, x => x.MetaDescription, x => x.MetaKeywords, x => x.Title); target.InjectFrom(patchInjection, source); }
public static dataModel.SeoUrlKeyword ToDataModel(this coreModel.SeoInfo seo) { var retVal = new dataModel.SeoUrlKeyword(); retVal.InjectFrom(seo); retVal.Keyword = seo.SemanticUrl; retVal.Language = seo.LanguageCode; retVal.Title = seo.PageTitle; retVal.IsActive = true; return retVal; }
public static dataModel.SeoUrlKeyword ToDataModel(this coreModel.SeoInfo seo) { var retVal = new dataModel.SeoUrlKeyword(); retVal.InjectFrom(seo); retVal.Keyword = seo.SemanticUrl; retVal.Language = seo.LanguageCode; retVal.Title = seo.PageTitle; return(retVal); }
public virtual void Patch(dataModel.SeoUrlKeyword target) { target.Language = Language; target.Keyword = Keyword; target.Title = Title; target.ImageAltDescription = ImageAltDescription; target.IsActive = IsActive; target.MetaDescription = MetaDescription; target.MetaKeywords = MetaKeywords; target.ObjectId = ObjectId; target.ObjectType = ObjectType; target.StoreId = StoreId; }