private void SaveProperty(ApiProperty property, ApiPropertyEntity apiPropertyEntity)
        {
            using (DatabaseContext context = CreateDatabaseContext())
            {
                VApiProperty existingProperty = context.ApiProperty.Find(property.PropertyId);

                if (existingProperty == null)
                {
                    context.ApiProperty.Add(new VApiProperty
                    {
                        ApiPropertyId   = property.PropertyId,
                        PropertyId      = apiPropertyEntity.PropertyId.Value,
                        LastChangedDate = property.DateLastModified
                    });
                }
                else
                {
                    existingProperty.LastChangedDate = property.DateLastModified;
                }

                context.SaveChanges();
            }
        }
 public void Save(ApiProperty property, ApiPropertyEntity apiPropertyEntity)
 {
     SaveBranch(apiPropertyEntity.Branch);
     _propertyDataProvider.Save(apiPropertyEntity);
     SaveProperty(property, apiPropertyEntity);
 }