Beispiel #1
0
        public void DeleteOrganization(Guid organizationId)
        {
            var provider = new OrganizationProvider(_credentialManager);

            provider.Delete(organizationId);
        }
Beispiel #2
0
        public Resource <Organization> UpdateOrganization(Resource <Organization> resource)
        {
            var provider = new OrganizationProvider(_credentialManager);

            return(provider.Update(resource));
        }
Beispiel #3
0
        public Resource <Organization> GetOrganization(Guid organizationId)
        {
            var provider = new OrganizationProvider(_credentialManager);

            return(provider.GetById(organizationId));
        }
Beispiel #4
0
        public Resource <Organization> CreateOrganization(string name)
        {
            var provider = new OrganizationProvider(_credentialManager);

            return(provider.Create(name));
        }
Beispiel #5
0
        public IEnumerable <Resource <Organization> > GetOrganizations()
        {
            var provider = new OrganizationProvider(_credentialManager);

            return(provider.GetAll());
        }