Пример #1
0
		public Person(TranslatedPerson translatedPerson, IEnumerable<string> cultures) : this()
		{
			Id = translatedPerson.Id;
			foreach (var culture in cultures)
			{
				Translations.Add(new PersonTranslation
				{
					Culture = culture,
					PersonId = translatedPerson.Id,
					Name = translatedPerson.Name,
					Description = translatedPerson.Description
				});
			}
		}
Пример #2
0
		public Person(TranslatedPerson translatedPerson, string culture) : this(translatedPerson, new[] { culture }) { }