コード例 #1
0
        public async Task <IActionResult> Post([FromBody] ClientApiDto client)
        {
            var clientDto = client.ToClientApiModel <ClientDto>();
            await _clientService.AddClientAsync(clientDto);

            return(Ok());
        }
コード例 #2
0
        public async Task <IActionResult> Post([FromBody] ClientApiDto client)
        {
            var clientDto = client.ToClientApiModel <ClientDto>();

            if (!clientDto.Id.Equals(default))