Exemplo n.º 1
0
        public async Task <IActionResult> Post([FromBody] ClientDTO client)
        {
            var result = await _clientService.CreateAsync(client);

            await _appUserService.AssignClientAsync(UserInfo.Id, result.Id);

            return(Ok(result));
        }