public dtoTemplateTranslation(TemplateTranslation t) { if (t != null) { Id = t.Id; Deleted = t.Deleted; IdVersion = t.Version.Id; IdLanguage = t.IdLanguage; Translation = t.Translation; LanguageCode = t.LanguageCode; LanguageName = t.LanguageName; } }
public virtual TemplateTranslation Copy(TemplateDefinitionVersion version, litePerson person, String ipAddress, String ipProxyAddress, String namePrefix = "") { TemplateTranslation t = new TemplateTranslation(); t.CreateMetaInfo(person, ipAddress, ipProxyAddress); t.Version = version; t.IdLanguage = IdLanguage; t.LanguageCode = LanguageCode; t.Translation = Translation.Copy(); if (!String.IsNullOrEmpty(namePrefix)) { t.Translation.Name = namePrefix + t.Translation.Name; } return(t); }