/// <summary> /// Gets a content entity if exists, otherwise returns default content entity. /// </summary> /// <param name="entityId">Entity identifier.</param> /// <param name="recordId">Entity record identifier.</param> /// <returns>Multilanguage content entity.</returns> public virtual Entity GetContent(Guid entityId, Guid recordId) { foreach (var languageId in LanguageIterator.GetLanguages(recordId)) { var contentEntity = ContentStore.Get(entityId, languageId); if (contentEntity != null) { return(contentEntity); } } return(ContentStore.GetDefault(entityId)); }