Adds response + problem detail RFC9457 (Problem Details for HTTP APIs)

This commit is contained in:
Janus Knudsen 2025-03-12 18:30:40 +01:00
parent 64e696dc5a
commit 9d384cd18d
4 changed files with 149 additions and 16 deletions

View file

@ -36,10 +36,7 @@ namespace PlanTempus.Components.Users.Create
command.IsActive,
});
var result = data.First();
return new CommandResponse(command.CorrelationId);
return new CommandResponse(command.CorrelationId, command.GetType().Name, command.TransactionId);
}
catch (PostgresException ex) when (ex.SqlState == "23505")
{