示例#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))