Exemplo n.º 1
0
        public async Task <IActionResult> UpdatePerson(int id, [FromBody] PersonDto model)
        {
            var response = await _clientService.PutAsync($"{_settings.Value.OilApiAddress}Person/UpdatePerson/{id}", model);

            var content = await response.Content.ReadAsStringAsync();

            return(new ObjectResult(content));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> UpdateFormDocument(long id, [FromBody] FormDictionaryDto model)
        {
            var response = await _clientService.PutAsync($"{_settings.Value.OilApiAddress}FormDocument/UpdateFormDocument/{id}", model);

            var content = await response.Content.ReadAsStringAsync();

            return(new ObjectResult(content));
        }