public void UpdateCopyProperty(CopyProperty p) { if (p == null) { throw new ArgumentNullException("property is null"); } _copyPropertyRepository.Update(p); _eventPublisher.EntityUpdated(p); }
public void DeleteCopyProperty(CopyProperty p) { if (p == null) { throw new ArgumentNullException("property is null"); } p.Deleted = true; UpdateCopyProperty(p); }
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)); }
public static CopyProperty ToEntity(this PropertyCreateModel model, CopyProperty destination) { return(model.MapTo(destination)); }
public static PropertyCreateModel ToCreateModel(this CopyProperty entity) { return(entity.MapTo <CopyProperty, PropertyCreateModel>()); }
public static PropertyBasicInfo ToCopyBasicModel(this CopyProperty entity) { return(entity.MapTo <CopyProperty, PropertyBasicInfo>()); }