This commit is contained in:
@@ -215,7 +215,7 @@ public sealed class OrderService(IDbContextFactory<MidrandBooksDbContext> contex
|
|||||||
|
|
||||||
return orderItems.Count > 0
|
return orderItems.Count > 0
|
||||||
? Result.Ok(orderItems.Select(i => i.ToModel()).ToArray())
|
? Result.Ok(orderItems.Select(i => i.ToModel()).ToArray())
|
||||||
: Result.Fail<OrderItem[]>("Order item not found or failed to remove.");
|
: Result.Fail<OrderItem[]>($"Order items not found for order ID {orderId}");
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user