Ejemplo n.º 1
0
        public Task <Person> Create(NewPerson data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Person>(ApiUrls.Persons(), data));
        }
        public Task <Activity> Create(NewActivity data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Activity>(ApiUrls.Activities(), data));
        }
        public Task <DealField> Create(NewDealField data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <DealField>(ApiUrls.DealFields(), data));
        }
Ejemplo n.º 4
0
        public Task <Organization> Create(NewOrganization data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Organization>(ApiUrls.Organizations(), data));
        }
Ejemplo n.º 5
0
        public Task <User> Create(NewUser data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <User>(ApiUrls.Users(), data));
        }
Ejemplo n.º 6
0
        public Task <Note> Create(NewNote data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Note>(ApiUrls.Notes(), data));
        }
        public Task <Webhook> Create(NewWebhook data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Webhook>(ApiUrls.Webhooks(), data));
        }
        public Task <OrganizationRelationship> Create(OrganizationRelationshipCreate data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <OrganizationRelationship>(ApiUrls.OrganizationRelationships(), data));
        }
Ejemplo n.º 9
0
        public Task <Pipeline> Create(NewPipeline data)
        {
            Ensure.ArgumentNotNull(data, nameof(data));

            return(ApiConnection.Post <Pipeline>(ApiUrls.Pipelines(), data));
        }
Ejemplo n.º 10
0
        public Task <CreatedDealProduct> AddProductToDeal(long dealId, NewDealProduct newDealProduct)
        {
            Ensure.ArgumentNotNull(newDealProduct, nameof(newDealProduct));

            return(ApiConnection.Post <CreatedDealProduct>(ApiUrls.AddProductToDeal(dealId), newDealProduct));
        }