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

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

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

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

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

            return(provider.GetAll());
        }