public Task <Webhook> Create(NewWebhook data) { Ensure.ArgumentNotNull(data, nameof(data)); return(ApiConnection.Post <Webhook>(ApiUrls.Webhooks(), data)); }
public Task Delete(long id) { return(ApiConnection.Delete(ApiUrls.Webhook(id))); }
public Task <Pipeline> Get(long id) { return(ApiConnection.Get <Pipeline>(ApiUrls.Pipeline(id))); }
public Task <IReadOnlyList <Webhook> > GetAll() { return(ApiConnection.GetAll <Webhook>(ApiUrls.Webhooks())); }
public Task <Organization> Get(long id) { return(ApiConnection.Get <Organization>(ApiUrls.Organization(id))); }
public Task <Organization> Edit(long id, OrganizationUpdate data) { Ensure.ArgumentNotNull(data, nameof(data)); return(ApiConnection.Put <Organization>(ApiUrls.Organization(id), data)); }
public Task <Stage> Get(long id) { return(ApiConnection.Get <Stage>(ApiUrls.Stage(id))); }
public Task <Person> Get(long id) { return(ApiConnection.Get <Person>(ApiUrls.Person(id))); }
public Task <File> Get(long id) { return(ApiConnection.Get <File>(ApiUrls.File(id))); }
public Task <IReadOnlyList <Stage> > GetAll() { return(ApiConnection.GetAll <Stage>(ApiUrls.Stages())); }
public Task Delete(long id) { return(ApiConnection.Delete(ApiUrls.Pipeline(id))); }
public Task <Pipeline> Edit(long id, PipelineUpdate data) { Ensure.ArgumentNotNull(data, nameof(data)); return(ApiConnection.Put <Pipeline>(ApiUrls.Pipeline(id), data)); }
public Task <Pipeline> Create(NewPipeline data) { Ensure.ArgumentNotNull(data, nameof(data)); return(ApiConnection.Post <Pipeline>(ApiUrls.Pipelines(), data)); }
public Task Delete(long id) { return(ApiConnection.Delete(ApiUrls.Person(id))); }
public Task <Stage> Create(NewStage data) { Ensure.ArgumentNotNull(data, nameof(data)); return(ApiConnection.Post <Stage>(ApiUrls.Stages(), data)); }
public Task DeleteFollower(long dealId, long followerId) { return(ApiConnection.Delete(ApiUrls.DeletePersonFollower(dealId, followerId))); }
public Task <Stage> Edit(long id, StageUpdate data) { Ensure.ArgumentNotNull(data, nameof(data)); return(ApiConnection.Put <Stage>(ApiUrls.Stage(id), data)); }
public Task <Person> Create(NewPerson data) { Ensure.ArgumentNotNull(data, nameof(data)); return(ApiConnection.Post <Person>(ApiUrls.Persons(), data)); }
public Task Delete(long id) { return(ApiConnection.Delete(ApiUrls.Stage(id))); }
public Task <Organization> Create(NewOrganization data) { Ensure.ArgumentNotNull(data, nameof(data)); return(ApiConnection.Post <Organization>(ApiUrls.Organizations(), data)); }
public Task <IReadOnlyList <Currency> > GetAll() { return(ApiConnection.GetAll <Currency>(ApiUrls.Currencies())); }
public Task Delete(long id) { return(ApiConnection.Delete(ApiUrls.Organization(id))); }
public Task <IReadOnlyList <Pipeline> > GetAll() { return(ApiConnection.GetAll <Pipeline>(ApiUrls.Pipelines())); }