public async Task <IActionResult> Put(long id, string culture, [FromBody] ContactAreaTranslationForm model)
        {
            if (ModelState.IsValid)
            {
                var contactArea = await _contactAreaRepository.Query().FirstOrDefaultAsync(x => x.Id == id);

                if (contactArea == null)
                {
                    return(NotFound());
                }

                var entityType = contactArea.GetType().Name;

                var localizeProperties = _localizedContentPropertyRepository.Query().Where(x => x.EntityId == contactArea.Id &&
                                                                                           x.EntityType == entityType && x.CultureId == culture);

                var localizedName = CreateOrUpdateTranslation(localizeProperties, contactArea, nameof(contactArea.Name), culture);
                localizedName.Value = model.Name;

                await _localizedContentPropertyRepository.SaveChangesAsync();

                return(Accepted());
            }

            return(BadRequest(ModelState));
        }
        public async Task <IActionResult> Get(long id, string culture)
        {
            var contactArea = await _contactAreaRepository.Query().FirstOrDefaultAsync(x => x.Id == id);

            if (contactArea == null)
            {
                return(NotFound());
            }

            var entityType         = contactArea.GetType().Name;
            var localizeProperties = _localizedContentPropertyRepository.Query().Where(x => x.EntityId == contactArea.Id &&
                                                                                       x.EntityType == entityType && x.CultureId == culture);
            var model = new ContactAreaTranslationForm
            {
                DefaultCultureName = contactArea.Name,
                Name = localizeProperties.FirstOrDefault(x => x.ProperyName == nameof(contactArea.Name))?.Value ?? contactArea.Name,
            };

            return(Ok(model));
        }