예제 #1
0
        public async Task <Service> UpdateService(Service service)
        {
            var responseString = await _httpClientAdapter.PutAsync(new Uri($"{ _ApiBaseAddress}/Services/{service.Id}"), service);

            var updatedService = JsonConvert.DeserializeObject <Service>(responseString);

            return(updatedService);
        }
예제 #2
0
        public async Task <Organization> UpdateOrganisation(Organization organization)
        {
            var responseString = await _httpClientAdapter.PutAsync(new Uri($"{ _ApiBaseAddress}/Organizations/{organization.Id}"), organization);

            return(organization);
        }