feat(OrderController): add PostDocument to hand document upload process
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user