feat(LogExtensions): add full url and use placeholder for binary-data

This commit is contained in:
2025-08-18 13:15:31 +02:00
parent b3a27ba24f
commit 48a69f884e
3 changed files with 41 additions and 24 deletions

View File

@@ -20,13 +20,11 @@ public class OrderController : ControllerBase
{
var res = await _mediator.Send(request, cancel);
if(res.Ok)
{
return res.Data is null || !res.Data.Any() ? NotFound() : Ok(res.Data);
}
return res.Data is null || !res.Data.Any()
? NotFound()
: Ok(res.Data);
else
{
return StatusCode(res.StatusCodeInt, res?.Error);
}
}
[HttpPost("document")]
@@ -40,13 +38,8 @@ public class OrderController : ControllerBase
var res = await _mediator.Send(request.ToUploadDocument(streamContent), cancel);
if (res.Ok)
{
return StatusCode(res.StatusCodeInt);
}
else
{
return StatusCode(res.StatusCodeInt, res?.Error);
}
return res.Ok
? StatusCode(res.StatusCodeInt)
: StatusCode(res.StatusCodeInt, res?.Error);
}
}