diff --git a/src/TaxBaik.Web/Endpoints/Client/CreateEndpoint.cs b/src/TaxBaik.Web/Endpoints/Client/CreateEndpoint.cs index 871f4e5..d561f08 100644 --- a/src/TaxBaik.Web/Endpoints/Client/CreateEndpoint.cs +++ b/src/TaxBaik.Web/Endpoints/Client/CreateEndpoint.cs @@ -24,8 +24,8 @@ public class CreateEndpoint : Endpoint try { var clientId = await _clientService.CreateAsync(request); - var client = await _clientService.GetByIdAsync(clientId) ?? request; - await SendAsync(client, 201, cancellation: ct); + var client = await _clientService.GetByIdAsync(clientId); + await SendAsync(client!, 201, cancellation: ct); } catch (ValidationException ex) {