Пример #1
0
        public override void ApplyEditChanges()
        {
            try
            {
                if (_propertyImageMapEditModeView.UpdatedImageMap.TrimmedNullOrEmpty())
                {
                    ImageMap = Domain.ImageMap.Empty;
                    return;
                }

                var updatedImageSlideShow = JsonConvert.DeserializeObject<Domain.ImageMap>(_propertyImageMapEditModeView.UpdatedImageMap, new IsoDateTimeConverter()) ?? Domain.ImageMap.Empty;
                updatedImageSlideShow.EnsureUniqueIds();
                ImageMap = updatedImageSlideShow;
            }
            catch (Exception ex)
            {
                AddErrorValidator(ex.Message);
            }
        }
Пример #2
0
        public override void ApplyEditChanges()
        {
            try
            {
                if (_propertyImageMapEditModeView.UpdatedImageMap.TrimmedNullOrEmpty())
                {
                    ImageMap = Domain.ImageMap.Empty;
                    return;
                }

                var updatedImageSlideShow = JsonConvert.DeserializeObject<Domain.ImageMap>(_propertyImageMapEditModeView.UpdatedImageMap, new IsoDateTimeConverter()) ?? Domain.ImageMap.Empty;
                updatedImageSlideShow.EnsureUniqueIds();
                ImageMap = updatedImageSlideShow;
            }
            catch (Exception ex)
            {
                AddErrorValidator(ex.Message);
            }
        }