fix: arreglo bug de inconsistencia en la paginacion , poniendolo como 1 based y con validacion.
This commit is contained in:
parent
7018efe279
commit
accb4d3c4a
|
|
@ -1,3 +1,4 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using DoliMiddlewareApi.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ public class InvoicesController : ControllerBase
|
|||
[HttpGet]
|
||||
public async Task<IActionResult> GetInvoices(
|
||||
[FromQuery] int limit = 50,
|
||||
[FromQuery] int page = 0,
|
||||
[FromQuery] [Range(1, int.MaxValue)] int page = 1,
|
||||
[FromQuery] string? status = null)
|
||||
{
|
||||
var invoices = await _dolibarrClient.GetInvoicesAsync(limit, page, status);
|
||||
|
|
|
|||
Loading…
Reference in New Issue