public void CloneChannelParams(int channelId, SPClientEntity entity)
        {
            SPChannelEntity channelEntity = this.DataObjectsContainerIocID.SPChannelDataObjectInstance.Load(channelId);

            List <SPChannelParamsEntity> channelParamsEntities =
                this.DataObjectsContainerIocID.SPChannelParamsDataObjectInstance.GetAllEnableParams(channelEntity);


            List <SPSendClientParamsEntity> sendClientParamsEntities =
                this.DataObjectsContainerIocID.SPSendClientParamsDataObjectInstance.GetAllEnableParams(entity);

            foreach (SPSendClientParamsEntity spSendClientParamsEntity in sendClientParamsEntities)
            {
                this.DataObjectsContainerIocID.SPSendClientParamsDataObjectInstance.Delete(spSendClientParamsEntity);
            }

            foreach (SPChannelParamsEntity channelParamsEntity in channelParamsEntities)
            {
                SPSendClientParamsEntity spSendClientParamsEntity = new SPSendClientParamsEntity();
                spSendClientParamsEntity.ClientID      = entity;
                spSendClientParamsEntity.Name          = channelParamsEntity.Name;
                spSendClientParamsEntity.Title         = channelParamsEntity.Title;
                spSendClientParamsEntity.Description   = channelParamsEntity.Description;
                spSendClientParamsEntity.IsEnable      = channelParamsEntity.IsEnable;
                spSendClientParamsEntity.IsRequired    = channelParamsEntity.IsRequired;
                spSendClientParamsEntity.MappingParams = channelParamsEntity.ParamsMappingName;
                this.DataObjectsContainerIocID.SPSendClientParamsDataObjectInstance.Save(spSendClientParamsEntity);
            }
        }
        internal static SPSendClientParamsWrapper ConvertEntityToWrapper(SPSendClientParamsEntity entity)
        {
            if (entity == null)
            {
                return(null);
            }

            if (entity.Id == 0)
            {
                return(null);
            }

            return(new SPSendClientParamsWrapper(entity));
        }
 internal SPSendClientParamsWrapper(SPSendClientParamsEntity entityObj)
 {
     entity = entityObj;
 }