feat(LogExtensions): add full url and use placeholder for binary-data
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user