Пример #1
0
        public void UpdateCopyProperty(CopyProperty p)
        {
            if (p == null)
            {
                throw new ArgumentNullException("property is null");
            }

            _copyPropertyRepository.Update(p);
            _eventPublisher.EntityUpdated(p);
        }
Пример #2
0
        public void DeleteCopyProperty(CopyProperty p)
        {
            if (p == null)
            {
                throw new ArgumentNullException("property is null");
            }

            p.Deleted = true;
            UpdateCopyProperty(p);
        }
Пример #3
0
        private void copyProperty_Click(object sender, EventArgs e)
        {
            var button = sender as ToolStripItem;

            if (button == null)
            {
                return;
            }

            CopyProperty.RaiseEvent(this, new GenericEventArgs <Property>((Property)button.Tag));
        }
Пример #4
0
 public static CopyProperty ToEntity(this PropertyCreateModel model, CopyProperty destination)
 {
     return(model.MapTo(destination));
 }
Пример #5
0
 public static PropertyCreateModel ToCreateModel(this CopyProperty entity)
 {
     return(entity.MapTo <CopyProperty, PropertyCreateModel>());
 }
Пример #6
0
 public static PropertyBasicInfo ToCopyBasicModel(this CopyProperty entity)
 {
     return(entity.MapTo <CopyProperty, PropertyBasicInfo>());
 }