diff --git a/src/Pixel.Identity.Core/Controllers/ApplicationsController.cs b/src/Pixel.Identity.Core/Controllers/ApplicationsController.cs index 96e19ac..5497969 100644 --- a/src/Pixel.Identity.Core/Controllers/ApplicationsController.cs +++ b/src/Pixel.Identity.Core/Controllers/ApplicationsController.cs @@ -71,7 +71,7 @@ public async Task Create([FromBody] ApplicationViewModel applicat { await AllowOriginsAsync(applicationDescriptor.RedirectUris); } - return CreatedAtAction(nameof(Get), new { clientId = applicationDescriptor.ClientId }, result); + return CreatedAtAction(nameof(Get), new { clientId = applicationDescriptor.ClientId }, mapper.Map(result)); } return BadRequest(new BadRequestResponse(ModelState.GetValidationErrors())); }