Ejemplo n.º 1
0
        public CreateComponentResponse CreateComponent(Guid accountId, CreateComponentRequestData data)
        {
            var request = GetRequest <CreateComponentRequest>(accountId);

            request.Data = data;
            var dispatcher = DispatcherHelper.GetDispatcherService();

            return(dispatcher.CreateComponent(request));
        }
Ejemplo n.º 2
0
        public Component CreateComponent(Guid accountId, CreateComponentRequestData data)
        {
            if (data == null)
            {
                throw new ParameterRequiredException("Request.Data");
            }
            var data2 = new GetOrCreateComponentRequestData()
            {
                DisplayName       = data.DisplayName,
                SystemName        = data.SystemName,
                TypeId            = data.TypeId,
                ParentComponentId = data.ParentComponentId,
                Version           = data.Version,
                Properties        = data.Properties
            };

            return(GetOrCreateComponentInternal(accountId, data2, true));
        }