using Microsoft.AspNetCore.Mvc; using WmsLite.Api.Common; using WmsLite.Api.Dtos.Inventory; using WmsLite.Api.Infrastructure.Auth; using WmsLite.Api.Services.Interfaces; namespace WmsLite.Api.Controllers; [ApiController] [Route("api/[controller]")] public class InventoryTransactionController : WmsLiteControllerBase { private readonly IInventoryTransactionService _service; public InventoryTransactionController(IInventoryTransactionService service, ICurrentUserContext currentUser) : base(currentUser) { _service = service; } [HttpPost("paged-list")] public async Task> GetPagedList([FromBody] InventoryTransactionPagedQuery request) => Ok(BusinessResult.Ok(await _service.GetPagedListAsync(request))); }