Пример #1
0
        public ProjectTaskAssignment AddAssignment(ProjectTask projectTask, ProjectTaskAssignment assignment)
        {
            DefaultHandler <ProjectTaskAssignment> handler = new DefaultHandler <ProjectTaskAssignment>($"{this.URL}/{projectTask.ID}/assignments", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests)
            {
                SortOrder = SortOrder.None
            };

            return(handler.Insert(assignment));
        }
Пример #2
0
        public Address AddAddress(Person person, Address address)
        {
            DefaultHandler <Address> handler = new DefaultHandler <Address>($"{this.URL}/{person.ID}/addresses", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Insert(address));
        }
Пример #3
0
        public Contact InsertContact(Person person, Contact contact)
        {
            DefaultHandler <Contact> handler = new DefaultHandler <Contact>($"{this.URL}/{person.ID}/contacts", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Insert(contact));
        }
        public KnowledgeArticleTranslation AddTranslation(KnowledgeArticle knowledgeArticle, KnowledgeArticleTranslation knowledgeArticleTranslation)
        {
            DefaultHandler <KnowledgeArticleTranslation> handler = new DefaultHandler <KnowledgeArticleTranslation>($"{this.URL}/{knowledgeArticle.ID}/translations", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Insert(knowledgeArticleTranslation));
        }
Пример #5
0
        public TaskTemplateApproval AddApproval(TaskTemplate taskTemplate, TaskTemplateApproval approval)
        {
            DefaultHandler <TaskTemplateApproval> handler = new DefaultHandler <TaskTemplateApproval>($"{this.URL}/{taskTemplate.ID}/approvals", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Insert(approval));
        }
Пример #6
0
        public BroadcastTranslation AddTranslation(Broadcast broadcast, BroadcastTranslation broadcastTranslation)
        {
            DefaultHandler <BroadcastTranslation> handler = new DefaultHandler <BroadcastTranslation>($"{this.URL}/{broadcast.ID}/translations", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Insert(broadcastTranslation));
        }
        public ConfigurationItemRelation AddConfigurationItemRelation(ConfigurationItem configurationItem, ConfigurationItemRelation configurationItemRelation)
        {
            DefaultHandler <ConfigurationItemRelation> handler = new DefaultHandler <ConfigurationItemRelation>($"{this.URL}/{configurationItem.ID}/ci_relations", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Insert(configurationItemRelation));
        }