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

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

            return(new ObjectResult(content));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> CreateWorkPackage([FromBody] ProjectWorkPackageListDto model)
        {
            var response = await _clientService.PostAsync($"{_settings.Value.OilApiAddress}WorkPackage/CreateWorkPackage", model);

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

            return(new ObjectResult(content));
        }