Adds response + problem detail RFC9457 (Problem Details for HTTP APIs)
This commit is contained in:
parent
64e696dc5a
commit
9d384cd18d
4 changed files with 149 additions and 16 deletions
|
|
@ -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")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue