feat(OrderController): add PostDocument to hand document upload process

This commit is contained in:
2025-08-18 10:26:36 +02:00
parent 6044d0bcb6
commit ccecf47dca
4 changed files with 34 additions and 5 deletions

View File

@@ -6,8 +6,16 @@ public record Response<TError>() where TError : class
{
public bool Ok { get; init; }
public HttpStatusCode? StatusCode { get; init; }
private HttpStatusCode? _statusCode;
public HttpStatusCode StatusCode
{
get => _statusCode ?? (Ok ? HttpStatusCode.OK : HttpStatusCode.InternalServerError);
init => _statusCode = value;
}
public int StatusCodeInt => (int)StatusCode;
public TError? Error { get; init; }
}